dateutil: Add comment explaining the use of ABCMeta (#8911)

This commit is contained in:
Alex Waygood
2022-10-17 11:46:48 +01:00
committed by GitHub
parent 928f006318
commit 9ba68c364a

View File

@@ -9,6 +9,9 @@ class _DatetimeWithFold(datetime):
@property
def fold(self): ...
# Doesn't actually have ABCMeta as the metaclass at runtime,
# but mypy complains if we don't have it in the stub.
# See discussion in #8908
class _tzinfo(tzinfo, metaclass=abc.ABCMeta):
def is_ambiguous(self, dt: datetime) -> bool: ...
def fromutc(self, dt: datetime) -> datetime: ...