Skip to content

Commit 54c68bd

Browse files
KarelZeMarkus Bilz
andauthored
fix: leading 0s in building numbers🐛 (#2209)
Co-authored-by: Markus Bilz <[email protected]>
1 parent ce879c4 commit 54c68bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

faker/providers/address/de_DE/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class Provider(AddressProvider):
1313
street_address_formats = ("{{street_name}} {{building_number}}",)
1414
address_formats = ("{{street_address}}\n{{postcode}} {{city}}",)
1515

16-
building_number_formats = ("###", "##", "#", "#/#")
16+
# NOTE: Zero itself can be a valid building number in rare cases e.g., Wilhelm-Wisser-Str. 0, Heidhörn
17+
# see: https://www.uniserv.com/wissen/magazin/article/besonderheiten-von-zustelladressen/
18+
building_number_formats = ("#", "%#", "%##", "%###", "%/%", "%#/%#", "%-%", "%#-%#")
1719

1820
street_suffixes_long = (
1921
"Gasse",

0 commit comments

Comments
 (0)