-
Notifications
You must be signed in to change notification settings - Fork 2
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
adds type hints to public APIs #111
Conversation
14a87e3
to
8d0e8bf
Compare
|
||
if isinstance(target, set): | ||
return {to_raw(t) for t in target} | ||
return cast(T, {to_raw(t) for t in target}) |
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.
are these casts
in to_raw
really necessary? return {}
is already a plain dict right?
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.
@ju1ius can you share your thoughts on this one?
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.
Awesome work, thank you! I just finished reviewing, it looks really good and I learned a few new things. :)
5d1322c
to
bbdd814
Compare
Slots are immutable so using lists is unnecessary.
bbdd814
to
0d1e8fe
Compare
Are you going to address the remaining comments? Otherwise I'd like to merge and move forward |
If it's OK for you then by all means do! 👍🏻 |
Closes #110