datetime.tzinfo is abstract (#8908)

This commit is contained in:
Nikita Sobolev
2022-10-17 02:20:31 +03:00
committed by GitHub
parent 3e828bd307
commit 9c5a588078
3 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +1,4 @@
import abc
from datetime import datetime, timedelta, tzinfo
from typing import ClassVar
@@ -8,7 +9,7 @@ class _DatetimeWithFold(datetime):
@property
def fold(self): ...
class _tzinfo(tzinfo):
class _tzinfo(tzinfo, metaclass=abc.ABCMeta):
def is_ambiguous(self, dt: datetime) -> bool: ...
def fromutc(self, dt: datetime) -> datetime: ...