Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix mypy
Browse files Browse the repository at this point in the history
stefan6419846 committed Jun 6, 2024
1 parent ef1b42d commit c974ecb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pypdf/_utils.py
Original file line number Diff line number Diff line change
@@ -672,12 +672,12 @@ class classproperty: # noqa: N801
that can be accessed directly from the class.
"""

def __init__(self, method=None): # noqa: ANN001 # type: ignore[no-untyped-def]
def __init__(self, method=None): # type: ignore # noqa: ANN001
self.fget = method

def __get__(self, instance, cls=None) -> Any: # noqa: ANN001 # type: ignore[no-untyped-def]
def __get__(self, instance, cls=None) -> Any: # type: ignore # noqa: ANN001
return self.fget(cls)

def getter(self, method): # noqa: ANN001, ANN202 # type: ignore[no-untyped-def]
def getter(self, method): # type: ignore # noqa: ANN001, ANN202
self.fget = method
return self

0 comments on commit c974ecb

Please sign in to comment.