Skip to content

Remove unnecessary __str__ definition#112

Merged
sloria merged 1 commit intosloria:masterfrom
hukkin:rm-str
Dec 3, 2019
Merged

Remove unnecessary __str__ definition#112
sloria merged 1 commit intosloria:masterfrom
hukkin:rm-str

Conversation

@hukkin
Copy link
Copy Markdown

@hukkin hukkin commented Dec 2, 2019

Remove unnecessary __str__ = __repr__. If not overridden, __str__ runs __repr__ in Python by default.

@sloria
Copy link
Copy Markdown
Owner

sloria commented Dec 3, 2019

Ah, TIL. Thanks!

@sloria sloria merged commit 303024f into sloria:master Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants