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

False positive type intelligence #39

Closed
tisonkun opened this issue Jul 17, 2023 · 2 comments
Closed

False positive type intelligence #39

tisonkun opened this issue Jul 17, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@tisonkun
Copy link

image

This code can properly work but PyCharm hint a type mismatch.

@yanyongyu yanyongyu added the duplicate This issue or pull request already exists label Jul 17, 2023
@yanyongyu
Copy link
Owner

yanyongyu commented Jul 17, 2023

Duplicate of #27

The type hint works fine in vscode pylance/pyright but not works in pycharm due to the bugs of pycharm type checking. The bugs are currently tracked by pycharm officially.

@tisonkun
Copy link
Author

Thanks for your information! Closing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants