Fix argument type for datetime.now. (#268)

It seems to actually take a tzinfo argument, not its subclass
timezone.
This commit is contained in:
Tim Abbott
2016-06-06 15:21:11 -07:00
committed by Guido van Rossum
parent c40a260b47
commit 6da0bcec4c
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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