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].
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
KeyValueFileManageris a generic but we're not marking it withKeyValueFileManager[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.Patterninsrc\usethis\_io.py. There.Patternis generic in the string type - we should go withKey: TypeAlias = str | re.Pattern[AnyStr].