Skip to content

Commit d210e5c

Browse files
committed
Use str(self) instead of self.__str__() in full_name property
Calling the dunder directly bypasses the normal str() protocol for no reason.
1 parent 1aeb111 commit d210e5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nameparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def is_turkic_patronymic_marker(self, piece: str) -> bool:
774774
@property
775775
def full_name(self) -> str:
776776
"""The string output of the HumanName instance."""
777-
return self.__str__()
777+
return str(self)
778778

779779
@full_name.setter
780780
def full_name(self, value: str | bytes) -> None:

0 commit comments

Comments
 (0)