mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Define `sphinx.builders.gettext.LocalTimeZone.tzname()`
This commit is contained in:
@@ -183,6 +183,9 @@ class LocalTimeZone(tzinfo):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.tzdelta = tzdelta
|
||||
|
||||
def tzname(self, dt: datetime | None) -> str: # purely to satisfy mypy
|
||||
return "local"
|
||||
|
||||
def utcoffset(self, dt: datetime | None) -> timedelta:
|
||||
return self.tzdelta
|
||||
|
||||
|
||||
Reference in New Issue
Block a user