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

Consider the "Any trick" #484

Open
Josverl opened this issue Dec 21, 2023 · 0 comments
Open

Consider the "Any trick" #484

Josverl opened this issue Dec 21, 2023 · 0 comments

Comments

@Josverl
Copy link
Owner

Josverl commented Dec 21, 2023

Sometimes the stubs lead to type narrowing that require additional asserts just to satisfy the type checkers.

str | None

Typeshed has a recommendation for that

https://github.com/python/typeshed/blob/main/CONTRIBUTING.md#the-any-trick

see if/where this is applicable to the micropython stubs as well

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

No branches or pull requests

1 participant