diff --git a/agenda/__init__.py b/agenda/__init__.py index 4fca2b0..0428f0c 100644 --- a/agenda/__init__.py +++ b/agenda/__init__.py @@ -22,7 +22,7 @@ def format_list_with_ampersand(items: list[str]) -> str: return "" -def get_country(alpha_2: str|None) -> pycountry.db.Country | None: +def get_country(alpha_2: str | None) -> pycountry.db.Country | None: """Lookup country by alpha-2 country code.""" if not alpha_2: return None @@ -32,7 +32,7 @@ def get_country(alpha_2: str|None) -> pycountry.db.Country | None: return None if alpha_2 == "xk": return pycountry.db.Country( - flag="\U0001F1FD\U0001F1F0", name="Kosovo", alpha_2="xk" + flag="\U0001f1fd\U0001f1f0", name="Kosovo", alpha_2="xk" ) country: pycountry.db.Country | None = None diff --git a/agenda/schengen.py b/agenda/schengen.py index 4061923..016cc01 100644 --- a/agenda/schengen.py +++ b/agenda/schengen.py @@ -40,6 +40,7 @@ SCHENGEN_COUNTRIES = { "ch", # Switzerland } + def is_schengen_country(country_code: str) -> bool: """Check if a country is in the Schengen area.""" if not country_code or not isinstance(country_code, str):