Skip to content

Commit fba37ea

Browse files
committed
Code order
1 parent 060384c commit fba37ea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

geonamescache/mappers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
from geonamescache.types import ContinentCode, CountryFields, CountryNumericFields, CountryStringFields
66

77

8+
gc = GeonamesCache()
9+
countries = gc.get_countries()
10+
11+
812
@overload
913
def country(from_key: str = "name", *, to_key: CountryNumericFields) -> Callable[[str], int]: ...
1014

@@ -17,10 +21,6 @@ def country(from_key: str = "name", to_key: CountryStringFields = "iso") -> Call
1721
def country(from_key: str = "name", *, to_key: Literal["continentcode"]) -> Callable[[str], ContinentCode]: ...
1822

1923

20-
gc = GeonamesCache()
21-
countries = gc.get_countries()
22-
23-
2424
def country(from_key: str = "name", to_key: CountryFields = "iso") -> Callable[[str], Any]:
2525
"""Creates and returns a mapper function to access country data.
2626

0 commit comments

Comments
 (0)