Skip to content

enable reportUnknownParameterType in basedpyright #1333

@nathanjmcdougall

Description

@nathanjmcdougall

Doesn't need to be enabled for the tests dir - can stay disabled.

[[tool.basedpyright.executionEnvironments]]
root = "tests"
reportUnknownParameterType = false
reportUnreachable = false
reportUnusedFunction = false

Many violation cases seem to be that KeyValueFileManager is a generic but we're not marking it with KeyValueFileManager[object] explicitly - doing so fixes the issue.

There's also some cases in pipeweld where we're not using annotations when we should be.

Some cases are due to Key: TypeAlias = str | re.Pattern in src\usethis\_io.py. The re.Pattern is generic in the string type - we should go with Key: TypeAlias = str | re.Pattern[AnyStr].

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions