Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -51,9 +51,8 @@ class date:
def today(cls: type[Self]) -> Self: ...
@classmethod
def fromordinal(cls: type[Self], __n: int) -> Self: ...
if sys.version_info >= (3, 7):
@classmethod
def fromisoformat(cls: type[Self], __date_string: str) -> Self: ...
@classmethod
def fromisoformat(cls: type[Self], __date_string: str) -> Self: ...
if sys.version_info >= (3, 8):
@classmethod
def fromisocalendar(cls: type[Self], year: int, week: int, day: int) -> Self: ...
@@ -135,10 +134,8 @@ class time:
def __gt__(self, __other: time) -> bool: ...
def __hash__(self) -> int: ...
def isoformat(self, timespec: str = ...) -> str: ...
if sys.version_info >= (3, 7):
@classmethod
def fromisoformat(cls: type[Self], __time_string: str) -> Self: ...
@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: ...
@@ -256,10 +253,8 @@ class datetime(date):
def utcnow(cls: type[Self]) -> Self: ...
@classmethod
def combine(cls, date: _Date, time: _Time, tzinfo: _TzInfo | None = ...) -> datetime: ...
if sys.version_info >= (3, 7):
@classmethod
def fromisoformat(cls: type[Self], __date_string: str) -> Self: ...
@classmethod
def fromisoformat(cls: type[Self], __date_string: str) -> Self: ...
def timestamp(self) -> float: ...
def utctimetuple(self) -> struct_time: ...
def date(self) -> _Date: ...