mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
imghdr: h can be None (#3815)
This commit is contained in:
@@ -10,7 +10,7 @@ else:
|
||||
|
||||
|
||||
@overload
|
||||
def what(file: _File) -> Optional[str]: ...
|
||||
def what(file: _File, h: None = ...) -> Optional[str]: ...
|
||||
@overload
|
||||
def what(file: Any, h: bytes) -> Optional[str]: ...
|
||||
tests: List[Callable[[bytes, BinaryIO], Optional[str]]]
|
||||
|
||||
Reference in New Issue
Block a user