Option to ignore reportUninitializedInstanceVariable
in stubs
#4137
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Is your feature request related to a problem? Please describe.
reportUninitializedInstanceVariable
is raised in type stubs. Since there's not way to disable rules per folder or file-type, I have to disable it entirely or add# pyright: reportUninitializedInstanceVariable=false
at the top of all my stubs.Describe the solution you'd like
An option to ignore
reportUninitializedInstanceVariable
in.pyi
files specifically.Additional context
A workaround is to add
=...
but that does no comply with Typeshed's practices.Since both are valid, this is more of a stylistic choice. Enforcing it forces redundancy.
The text was updated successfully, but these errors were encountered: