Skip to content

Tracking: Enabling more pyright rules #3103

@dangotbanned

Description

@dangotbanned

Description

We have most of the rules disabled, but there are some interesting ones hidden away.

I'm mainly interested in things that mypy currently catches, but pyright could've warned earlier.
Things unique to pyright could be nice, but a lot of them seem to be covered by ruff

Not in any rush to do this btw

PRs

Misc

#3096 (comment)

Oooh also it reminded me of trying out typeCheckingMode = "strict" a couple months back

reportUnusedExpression = "none"    # handled by (https://docs.astral.sh/ruff/rules/unused-variable/)
+ # strict
+ reportUnusedVariable = "none"      # handled by (https://docs.astral.sh/ruff/rules/unused-variable/)
+ reportUnusedClass = "none"
+ reportUnusedFunction = "none"
+ reportPrivateUsage = "none"
+ reportUnknownVariableType = "none"
+ reportUnknownArgumentType = "none"
+ reportUnknownMemberType = "none"
+ reportUnknownLambdaType = "none"
+ reportMissingTypeStubs = "none"
+ typeCheckingMode = "strict" # strict = 3545 errors

I'd gotten the branch down to 81 errors (June 26, 2025), and reportIncompatibleMethodOverride I thought we should keep as well 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions