summaryrefslogtreecommitdiff
path: root/babel/localtime/_unix.py
diff options
context:
space:
mode:
Diffstat (limited to 'babel/localtime/_unix.py')
-rw-r--r--babel/localtime/_unix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/babel/localtime/_unix.py b/babel/localtime/_unix.py
index 3d1480e..beb7f60 100644
--- a/babel/localtime/_unix.py
+++ b/babel/localtime/_unix.py
@@ -3,7 +3,7 @@ import re
import pytz
-def _tz_from_env(tzenv):
+def _tz_from_env(tzenv: str) -> pytz.BaseTzInfo:
if tzenv[0] == ':':
tzenv = tzenv[1:]
@@ -23,7 +23,7 @@ def _tz_from_env(tzenv):
"Please use a timezone in the form of Continent/City")
-def _get_localzone(_root='/'):
+def _get_localzone(_root: str = '/') -> pytz.BaseTzInfo:
"""Tries to find the local timezone configuration.
This method prefers finding the timezone name and passing that to pytz,
over passing in the localtime file, as in the later case the zoneinfo