mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-29 15:16:54 +08:00
Allow is_dst=None in pytz.BaseTzInfo.localize() (#3002)
See http://pytz.sourceforge.net/#problems-with-localtime
This commit is contained in:
committed by
Sebastian Rittau
parent
07d4938251
commit
45266c9c32
2
third_party/2and3/pytz/__init__.pyi
vendored
2
third_party/2and3/pytz/__init__.pyi
vendored
@@ -3,7 +3,7 @@ import datetime
|
||||
|
||||
class BaseTzInfo(datetime.tzinfo):
|
||||
zone: str = ...
|
||||
def localize(self, dt: datetime.datetime, is_dst: bool = ...) -> datetime.datetime: ...
|
||||
def localize(self, dt: datetime.datetime, is_dst: Optional[bool] = ...) -> datetime.datetime: ...
|
||||
def normalize(self, dt: datetime.datetime) -> datetime.datetime: ...
|
||||
|
||||
class _UTCclass(BaseTzInfo):
|
||||
|
||||
Reference in New Issue
Block a user