diff options
Diffstat (limited to 'sphinx/builders/gettext.py')
-rw-r--r-- | sphinx/builders/gettext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/builders/gettext.py b/sphinx/builders/gettext.py index e7adb0b8c..bbc1422e5 100644 --- a/sphinx/builders/gettext.py +++ b/sphinx/builders/gettext.py @@ -198,7 +198,7 @@ if source_date_epoch is not None: class LocalTimeZone(tzinfo): - def __init__(self, *args, **kw) -> None: + def __init__(self, *args: Any, **kw: Any) -> None: super().__init__(*args, **kw) # type: ignore self.tzdelta = tzdelta @@ -212,7 +212,7 @@ class LocalTimeZone(tzinfo): ltz = LocalTimeZone() -def should_write(filepath: str, new_content: str): +def should_write(filepath: str, new_content: str) -> bool: if not path.exists(filepath): return True try: |