mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-13 00:20:10 +08:00
datetime.tzinfo is abstract (#8908)
This commit is contained in:
1 parent
3e828bd307
commit
9c5a588078
3 files changed
+14
-3
No files matched your search
@@ -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: ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user