mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-07-12 23:10:08 +02:00
refactor: Implement MyPy feedback
This commit is contained in:
@ -65,7 +65,7 @@ def parse_stakeholder(data: dict) -> CompanyRelationship | None:
|
||||
# It's a Compnay serving as a "Kommanditist" or similar
|
||||
if data["Beteiligter"]["Natuerliche_Person"]["Voller_Name"]["Vorname"] is None:
|
||||
return CompanyToCompanyRelationship(
|
||||
**{
|
||||
**{ # type: ignore
|
||||
"name": remove_traling_and_leading_quotes(
|
||||
data["Beteiligter"]["Natuerliche_Person"]["Voller_Name"][
|
||||
"Nachname"
|
||||
@ -129,7 +129,7 @@ def parse_stakeholder(data: dict) -> CompanyRelationship | None:
|
||||
)
|
||||
if "Organisation" in data["Beteiligter"]:
|
||||
return CompanyToCompanyRelationship(
|
||||
**{
|
||||
**{ # type: ignore
|
||||
"role": RelationshipRoleEnum(
|
||||
data["Rolle"]["Rollenbezeichnung"]["content"]
|
||||
),
|
||||
@ -444,6 +444,7 @@ def map_last_update(data: dict) -> str:
|
||||
"""
|
||||
return data["XJustiz_Daten"]["Fachdaten_Register"]["Auszug"]["letzte_Eintragung"]
|
||||
|
||||
|
||||
def map_unternehmensregister_json(data: dict) -> Company:
|
||||
"""Processes the Unternehmensregister structured export to a Company by using several helper methods.
|
||||
|
||||
|
Reference in New Issue
Block a user