Skip to content

Commit

Permalink
feat: avoid mypy errors about empty body of an abstract method
Browse files Browse the repository at this point in the history
Maybe could replace with with a custom Protocol in a later version, but this is
the smallest step that sorts some type checking issues.
  • Loading branch information
michalc committed May 27, 2024
1 parent eab1bdb commit f602cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stream_zip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

# A "Method" is an instance of a class that has a _get function that returns a _MethodTuple
class Method(ABC):
@abstractmethod
def _get(self, offset: int, default_get_compressobj: _CompressObjGetter) -> _MethodTuple:
pass

Expand Down

0 comments on commit f602cb8

Please sign in to comment.