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

adds type hints to public APIs #111

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Conversation

ju1ius
Copy link
Contributor

@ju1ius ju1ius commented Nov 14, 2023

Closes #110


if isinstance(target, set):
return {to_raw(t) for t in target}
return cast(T, {to_raw(t) for t in target})
Copy link
Collaborator

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?

Copy link
Collaborator

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?

observ/watcher.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Korijn Korijn left a 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. :)

@Korijn
Copy link
Collaborator

Korijn commented Nov 16, 2023

Are you going to address the remaining comments? Otherwise I'd like to merge and move forward

@ju1ius
Copy link
Contributor Author

ju1ius commented Nov 16, 2023

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! 👍🏻

@Korijn Korijn merged commit e351912 into fork-tongue:master Nov 16, 2023
7 checks passed
@Korijn
Copy link
Collaborator

Korijn commented Nov 16, 2023

Thanks a lot @ju1ius <3

I've documented the two remaining comments in new issue #114

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.

missing type hints for the public API
2 participants