False negative: In a stub file @final
must be applied only to the first overload
#6866
Labels
addressed in next version
Issue is fixed and will appear in next published version
bug
Something isn't working
Describe the bug
pyright does not generate an error if
@final
appears on subsequent overloads. PEP 591 says:"For overloaded methods,
@final
should be placed on the implementation (or on the first overload, for stubs)"Code or Screenshots
Consider this pyi file:
VS Code extension or command-line
command-line: pyright 1.1.344
The text was updated successfully, but these errors were encountered: