mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
more 3.7 features (#2017)
This commit is contained in:
committed by
Guido van Rossum
parent
7cfbc7d17f
commit
0acdfd1548
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user