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

Specify type arguments for map_ #230

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

DeviousStoat
Copy link
Contributor

closes #228

pyright has a few strict rules (reportUnknownVariableType and reportUnknownMemberType) which reports an error when the type is partially unknown, meaning the generic type doesn't have a type argument specified. map_ can be used on a lot of different types, this is why we have this last catch all overload, we can simply add Any to the type argument to mean the same thing and make strict pyright happy.

I also fixed the type tests, they were broken, the comment needs to be on the same line.

@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same
when pulling 15837ad on DeviousStoat:specify-type-argument
into 2a89f78 on dgilland:develop.

@dgilland dgilland merged commit ed8a519 into dgilland:develop Jul 21, 2024
12 checks passed
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.

Pyright complains type issues when use chain method
3 participants