Skip to content

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

stdlib/2and3/binascii.pyi

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ else:
2121
_Ascii = Union[bytes, Text]
2222

2323
def a2b_uu(string: _Ascii) -> bytes: ...
24-
def b2a_uu(data: _Bytes) -> bytes: ...
24+
if sys.version_info >= (3, 7):
25+
def b2a_uu(data: _Bytes, *, backtick: bool = ...) -> bytes: ...
26+
else:
27+
def b2a_uu(data: _Bytes) -> bytes: ...
2528
def a2b_base64(string: _Ascii) -> bytes: ...
2629
if sys.version_info >= (3, 6):
2730
def b2a_base64(data: _Bytes, *, newline: bool = ...) -> bytes: ...

stdlib/2and3/calendar.pyi

+8
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ class HTMLCalendar(Calendar):
6565
def formatmonth(self, theyear: int, themonth: int, withyear: bool = ...) -> str: ...
6666
def formatyear(self, theyear: int, width: int = ...) -> str: ...
6767
def formatyearpage(self, theyear: int, width: int = ..., css: Optional[str] = ..., encoding: Optional[str] = ...) -> str: ...
68+
if sys.version_info >= (3, 7):
69+
cssclasses: List[str]
70+
cssclass_today: str
71+
cssclasses_weekday_head: List[str]
72+
cssclass_month_head: str
73+
cssclass_month: str
74+
cssclass_year: str
75+
cssclass_year_head: str
6876

6977
if sys.version_info < (3, 0):
7078
class TimeEncoding:

stdlib/2and3/contextlib.pyi

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ if sys.version_info >= (3, 5):
1414

1515
if sys.version_info >= (3, 6):
1616
from typing import ContextManager as AbstractContextManager
17+
if sys.version_info >= (3, 7):
18+
from typing import AsyncContextManager as AbstractAsyncContextManager
1719

1820
_T = TypeVar('_T')
1921

stdlib/2and3/crypt.pyi

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@ if sys.version_info >= (3, 3):
99
METHOD_MD5: _Method
1010
METHOD_SHA256: _Method
1111
METHOD_SHA512: _Method
12+
if sys.version_info >= (3, 7):
13+
METHOD_BLOWFISH: _Method
1214

1315
methods: List[_Method]
1416

15-
def mksalt(method: Optional[_Method] = ...) -> str: ...
17+
if sys.version_info >= (3, 7):
18+
def mksalt(method: Optional[_Method] = ..., *, rounds: Optional[int] = ...) -> str: ...
19+
else:
20+
def mksalt(method: Optional[_Method] = ...) -> str: ...
1621
def crypt(word: str, salt: Optional[Union[str, _Method]] = ...) -> str: ...
1722
else:
1823
def crypt(word: str, salt: str) -> str: ...

stdlib/2and3/datetime.pyi

+3
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ class datetime:
223223
else:
224224
@classmethod
225225
def combine(cls, date: date, time: time) -> datetime: ...
226+
if sys.version_info >= (3, 7):
227+
@classmethod
228+
def fromisoformat(cls, date_string: str) -> datetime: ...
226229
def strftime(self, fmt: _Text) -> str: ...
227230
if sys.version_info >= (3,):
228231
def __format__(self, fmt: str) -> str: ...

0 commit comments

Comments
 (0)