mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
chore: update __repr__ for PdfName
This commit is contained in:
parent
74063feadc
commit
984c2e7f30
|
@ -225,7 +225,7 @@ class PdfName:
|
||||||
return hash(self.name)
|
return hash(self.name)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"PdfName({repr(self.name)})"
|
return f"{self.__class__.__name__}({repr(self.name)})"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_pdf_stream(cls, data):
|
def from_pdf_stream(cls, data):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user