Upgrade black version (#7089)

This commit is contained in:
Shantanu
2022-01-30 16:27:06 -08:00
committed by GitHub
parent 9854926289
commit b88a6f19cd
173 changed files with 496 additions and 2 deletions

View File

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