-
Notifications
You must be signed in to change notification settings - Fork 3
enable reportUnknownParameterType in basedpyright #1333
Copy link
Copy link
Closed
Description
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].
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels