Skip to content

Commit

Permalink
STY: Use f-strings
Browse files Browse the repository at this point in the history
Use f-strings in two methods of class PdfObject.
  • Loading branch information
j-t-1 authored Dec 1, 2024
1 parent 53b0f1e commit bac5967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/generic/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def hash_bin(self) -> int:
)

def hash_value_data(self) -> bytes:
return (f"{self}").encode()
return f"{self}".encode()

def hash_value(self) -> bytes:
return (
Expand Down

0 comments on commit bac5967

Please sign in to comment.