mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 18:42:41 +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:
1 parent
c40a260b47
commit
6da0bcec4c
2 files changed
+2
-2
No files matched your search
@@ -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