imghdr: h can be None (#3815)

This commit is contained in:
Shantanu
2020-03-06 02:03:11 -08:00
committed by GitHub
parent 009e650a1d
commit b208f21fbd
2 changed files with 1 additions and 2 deletions

View File

@@ -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]]]