mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Mypy now supports sys.platform and sys.version_info checks (#410)
This commit is contained in:
@@ -13,8 +13,7 @@ if sys.version_info >= (3, 4):
|
||||
def new(key: _B, msg: Optional[_B] = ...,
|
||||
digestmod: Optional[Union[str, Callable[[], _Hash], ModuleType]] = ...) -> HMAC: ...
|
||||
else:
|
||||
def new( # type: ignore
|
||||
key: _B, msg: Optional[_B] = ...,
|
||||
def new(key: _B, msg: Optional[_B] = ...,
|
||||
digestmod: Optional[Union[Callable[[], _Hash], ModuleType]] = ...) -> HMAC: ...
|
||||
|
||||
class HMAC:
|
||||
|
||||
Reference in New Issue
Block a user