-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve type hints #152
Improve type hints #152
Conversation
GtkView should be able to deal with those, so the model can easely be replaced.
Now we do not need to inherit from Item explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my knowledge, why was it better to move from a Sequence to a Collection?
A sequence includes integer indexed data structures like list, str, and tuple.
A collection includes list, dict, tuple, etc.
Are we trying to allow for passing in items that are in a dictionary?
I was only trying to define the minimal interface required. Sequence is a subtype of Collection according to the docs: |
Rename Selection aspect to Selector.
Sourcery Code Quality Report✅ Merging this PR will increase code quality in the affected files by 0.49%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Let us know what you think of it by mentioning @sourcery-ai in a comment. |
@amolenaar Nice refactoring! 🎉 |
PR Type
What kind of change does this PR introduce?
What is the new behavior?
Gaphas is more specific on the types it accepts and how it handles those.
Does this PR introduce a breaking change?
Other information