]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commitdiff
fix: type hint for electronic address (#65)
authorRaffael Meyer <14891507+barredterra@users.noreply.github.com>
Mon, 10 Feb 2025 12:02:43 +0000 (13:02 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2025 12:02:43 +0000 (13:02 +0100)
Resolves https://github.com/pretix/python-drafthorse/pull/48#discussion_r1929207727

drafthorse/models/party.py

index fa8d00ea2bae5327a401c3b6a74edda7ee5b7a87..226af18e3f4ed9e06827fdd716c12b353801c649 100644 (file)
@@ -130,7 +130,7 @@ class TradeParty(Element):
         profile=BASIC,
         _d="Anschrift des Handelspartners",
     )
-    electronic_address: Container = Field(
+    electronic_address: URIUniversalCommunication = Field(
         URIUniversalCommunication, required=False, profile=BASIC
     )
     tax_registrations: Container = MultiField(