more 3.7 features (#2017)

This commit is contained in:
Jelle Zijlstra
2018-04-06 11:09:45 -07:00
committed by Guido van Rossum
parent 7cfbc7d17f
commit 0acdfd1548
3 changed files with 16 additions and 2 deletions

View File

@@ -27,7 +27,10 @@ if sys.version_info >= (3, 4):
def calcsize(fmt: _FmtType) -> int: ...
class Struct:
format = ... # type: bytes
if sys.version_info >= (3, 7):
format: str
else:
format: bytes
size = ... # type: int
def __init__(self, format: _FmtType) -> None: ...