Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix str of job when there is no __name__ #430

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

biggerfisch
Copy link
Contributor

Partial functions for example do not have a __name__, so they need the same treatment in __str__ as in __repr__ in order to show name-like thing.

Also added tests to stop this from happening again.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Partial functions for example do not have a __name__, so they need the
same treatment in __str__ as in __repr__ in order to show a name-like
thing.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 9f49bad on enviosystems:master into 170b63a on dbader:master.

@SijmenHuizenga SijmenHuizenga added this to the 1.1.0 milestone Feb 3, 2021
@SijmenHuizenga
Copy link
Collaborator

Hi @biggerfisch, thanks a lot for this pr! It takes the small fixes like these that make a library perfect, thank 💪

@SijmenHuizenga SijmenHuizenga merged commit 90bfdf3 into dbader:master Feb 3, 2021
MartinThoma pushed a commit to MartinThoma/schedule that referenced this pull request Feb 8, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Partial functions for example do not have a __name__, so they need the
same treatment in __str__ as in __repr__ in order to show a name-like
thing.
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.

None yet

3 participants