From c974ecb06688a2f1c9aa4fca2a6ec9a77132c35a Mon Sep 17 00:00:00 2001 From: stefan6419846 <96178532+stefan6419846@users.noreply.github.com> Date: Thu, 6 Jun 2024 10:36:05 +0200 Subject: [PATCH] fix mypy --- pypdf/_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pypdf/_utils.py b/pypdf/_utils.py index c4c4df995..bcfdc7c1e 100644 --- a/pypdf/_utils.py +++ b/pypdf/_utils.py @@ -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