Skip to content

Commit

Permalink
Update typing_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Dec 30, 2023
1 parent 388efa1 commit 5cc2e5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hocr_tools_lib/utils/typing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class SupportsRead(Protocol[_T_co]): # type: ignore[no-redef]
def read(self, __length: int = ...) -> _T_co:
...

class SupportsReadClose(SupportsRead[_T_co], Protocol[_T_co]): # type: ignore[no-redef]
def close(self) -> None:
...


__all__ = [
"SupportsRead",
Expand Down

0 comments on commit 5cc2e5c

Please sign in to comment.