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

Type check failed for inspect.Paramter.empty #6068

Closed
yanyongyu opened this issue Sep 24, 2021 · 2 comments · Fixed by #6073
Closed

Type check failed for inspect.Paramter.empty #6068

yanyongyu opened this issue Sep 24, 2021 · 2 comments · Fixed by #6073

Comments

@yanyongyu
Copy link
Contributor

yanyongyu commented Sep 24, 2021

inspect.Paramter.empty is class but not instance

merged pr #6020 suggested that empty is an instance for class _empty

empty: _empty

Linked issue

more static type check detail canbe found here

microsoft/pylance-release#1872

@hauntsaninja
Copy link
Collaborator

Thanks for reporting! Seems like people discussed empty = _empty, but then the wrong change was made. PR welcome!

@yanyongyu
Copy link
Contributor Author

i've just made a pr to resolve this!

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 a pull request may close this issue.

2 participants