From 2d46cd28014c53810a7ba9732535f0b0a6098297 Mon Sep 17 00:00:00 2001 From: AlexWaygood Date: Mon, 17 Oct 2022 09:30:06 +0100 Subject: [PATCH] `dateutil`: Add comment explaining the use of `ABCMeta` --- stubs/python-dateutil/dateutil/tz/_common.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stubs/python-dateutil/dateutil/tz/_common.pyi b/stubs/python-dateutil/dateutil/tz/_common.pyi index 913fa06c6134..c9e6ba5dd1b5 100644 --- a/stubs/python-dateutil/dateutil/tz/_common.pyi +++ b/stubs/python-dateutil/dateutil/tz/_common.pyi @@ -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: ...