mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix argument type for datetime.now. (#268)
It seems to actually take a tzinfo argument, not its subclass timezone.
This commit is contained in:
committed by
Guido van Rossum
parent
c40a260b47
commit
6da0bcec4c
@@ -181,7 +181,7 @@ class datetime(object):
|
||||
@classmethod
|
||||
def fromordinal(cls, n: int) -> datetime: ...
|
||||
@classmethod
|
||||
def now(cls, tz: timezone = ...) -> datetime: ...
|
||||
def now(cls, tz: _tzinfo = ...) -> datetime: ...
|
||||
@classmethod
|
||||
def utcnow(cls) -> datetime: ...
|
||||
@classmethod
|
||||
|
||||
@@ -181,7 +181,7 @@ class datetime:
|
||||
@classmethod
|
||||
def fromordinal(cls, n: int) -> datetime: ...
|
||||
@classmethod
|
||||
def now(cls, tz: timezone = ...) -> datetime: ...
|
||||
def now(cls, tz: _tzinfo = ...) -> datetime: ...
|
||||
@classmethod
|
||||
def utcnow(cls) -> datetime: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user