mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 22:11:54 +08:00
Upgrade black version (#7089)
This commit is contained in:
@@ -49,6 +49,7 @@ class date:
|
||||
if sys.version_info >= (3, 8):
|
||||
@classmethod
|
||||
def fromisocalendar(cls: type[Self], year: int, week: int, day: int) -> Self: ...
|
||||
|
||||
@property
|
||||
def year(self) -> int: ...
|
||||
@property
|
||||
@@ -85,6 +86,7 @@ class date:
|
||||
def __sub__(self, __other: datetime) -> NoReturn: ...
|
||||
@overload
|
||||
def __sub__(self, __other: date) -> timedelta: ...
|
||||
|
||||
def __hash__(self) -> int: ...
|
||||
def weekday(self) -> int: ...
|
||||
def isoweekday(self) -> int: ...
|
||||
@@ -128,6 +130,7 @@ class time:
|
||||
if sys.version_info >= (3, 7):
|
||||
@classmethod
|
||||
def fromisoformat(cls: type[Self], __time_string: str) -> Self: ...
|
||||
|
||||
def strftime(self, __format: str) -> str: ...
|
||||
def __format__(self, __fmt: str) -> str: ...
|
||||
def utcoffset(self) -> timedelta | None: ...
|
||||
@@ -240,6 +243,7 @@ class datetime(date):
|
||||
@overload
|
||||
@classmethod
|
||||
def now(cls, tz: _tzinfo) -> datetime: ...
|
||||
|
||||
@classmethod
|
||||
def utcnow(cls: type[Self]) -> Self: ...
|
||||
@classmethod
|
||||
@@ -247,6 +251,7 @@ class datetime(date):
|
||||
if sys.version_info >= (3, 7):
|
||||
@classmethod
|
||||
def fromisoformat(cls: type[Self], __date_string: str) -> Self: ...
|
||||
|
||||
def timestamp(self) -> float: ...
|
||||
def utctimetuple(self) -> struct_time: ...
|
||||
def date(self) -> _date: ...
|
||||
@@ -269,6 +274,7 @@ class datetime(date):
|
||||
def astimezone(self: Self, tz: _tzinfo | None = ...) -> Self: ...
|
||||
else:
|
||||
def astimezone(self, tz: _tzinfo | None = ...) -> datetime: ...
|
||||
|
||||
def ctime(self) -> str: ...
|
||||
def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user