Skip to content

Commit

Permalink
STY: Put __init__ first
Browse files Browse the repository at this point in the history
Just for convention, put __init__ as the first member of the class ViewerPreferences.
  • Loading branch information
j-t-1 authored Nov 28, 2024
1 parent c5d9838 commit bc31175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/generic/_viewerpref.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit bc31175

Please sign in to comment.