You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy and paste the snippet into a python file in vscode and watch it show linting errors.
Expected behavior
Pylance used to not highlight an attribute added by a decorator as invalid and this code obviously executes no problem.
Actual behavior
Cannot access attribute "func_repr" for class "function"
Attribute "func_repr" is unknownPylance[reportFunctionMemberAccess](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportFunctionMemberAccess)
The text was updated successfully, but these errors were encountered:
So pylance is not correctly linting methods/attributes added by decorators since the most recent release of vscode.
Environment data
Code Snippet
Repro Steps
Copy and paste the snippet into a python file in vscode and watch it show linting errors.
Expected behavior
Pylance used to not highlight an attribute added by a decorator as invalid and this code obviously executes no problem.
Actual behavior
The text was updated successfully, but these errors were encountered: