From 3a022e87361207161e7f2020d663aec6231e050b Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 20 Jan 2025 12:06:46 +0000 Subject: [PATCH] country can be None in get_country --- agenda/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenda/__init__.py b/agenda/__init__.py index 70701fe..a969e5b 100644 --- a/agenda/__init__.py +++ b/agenda/__init__.py @@ -33,7 +33,7 @@ def get_country(alpha_2: str) -> pycountry.db.Country | None: flag="\U0001F1FD\U0001F1F0", name="Kosovo", alpha_2="xk" ) - country: pycountry.db.Country = None + country: pycountry.db.Country | None = None if len(alpha_2) == 2: country = pycountry.countries.get(alpha_2=alpha_2.upper()) elif len(alpha_2) == 3: