From bc3117522502b61e3844beb5e2994a2d1129802f Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Thu, 28 Nov 2024 09:59:55 +0000 Subject: [PATCH] STY: Put __init__ first Just for convention, put __init__ as the first member of the class ViewerPreferences. --- pypdf/generic/_viewerpref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypdf/generic/_viewerpref.py b/pypdf/generic/_viewerpref.py index 6fbf56143..f5dbd9c9b 100644 --- a/pypdf/generic/_viewerpref.py +++ b/pypdf/generic/_viewerpref.py @@ -47,7 +47,7 @@ def __init__(self, obj: Optional[DictionaryObject] = None) -> None: self.indirect_reference = obj.indirect_reference # type: ignore except AttributeError: pass - + def _get_bool(self, key: str, default: Optional[BooleanObject]) -> BooleanObject: return self.get(key, default)