-
Notifications
You must be signed in to change notification settings - Fork 676
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 Hints via stub files doesn't change after deleting .pyi file #7742
Comments
@linette-zyy Does this still repro for you? I can't repro in Microsoft Visual Studio Enterprise 2022 (64-bit) - Int Preview |
@StellaHuang95 |
I am still not able to repro this. Can you go to Tools -> Options -> Python -> Analysis, set Log Level to Trace, repro the issue, and paste the output from Pylance? |
Output from Pylance:
|
ok I see, thanks. |
Environment
Steps to Reproduce
1.Create a Python Application project
2.Add a module file named employee.py and enter below code:
3.In default .py file which has no type:
4.Add a stub file named employee.pyi and enter below code:
def is_valid_employee(name:str, id: int) -> bool: pass
5.In default .py file, tooltip that shows VS proposes the types found in the .pyi
6.Delete employee.pyi
7.Check type Hints whether change to 'Any'
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: