Skip to content

fix: codeowners property and add regression unit tests #1540

fix: codeowners property and add regression unit tests

fix: codeowners property and add regression unit tests #1540

Triggered via pull request February 25, 2025 17:40
Status Failure
Total duration 1m 14s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
mypy: src/codegen/sdk/core/codebase.py#L110
error: Cannot resolve name "TSDirectory" (possible cyclic definition) [misc]
mypy: src/codegen/sdk/core/codebase.py#L111
error: Cannot resolve name "PyDirectory" (possible cyclic definition) [misc]
mypy: src/codegen/sdk/core/codebase.py#L205
error: Value of type "list[ProjectConfig] | None" is not indexable [index]
mypy: src/codegen/sdk/core/codebase.py#L211
error: Argument 1 to "CodebaseContext" has incompatible type "list[ProjectConfig] | None"; expected "list[ProjectConfig]" [arg-type]
mypy: src/codegen/sdk/core/codebase.py#L227
error: "Callable[[Codebase[TSourceFile, TDirectory, TSymbol, TClass, TFunction, TImport, TGlobalVar, TInterface, TTypeAlias, TParameter, TCodeBlock]], Iterable[Any | tuple[Any] | tuple[str, Any] | tuple[str, Any, Any]]]" has no attribute "angular" [attr-defined]
mypy: src/codegen/sdk/core/codebase.py#L269
error: Incompatible types in assignment (expression has type "list[Importable[Any]]", variable has type "list[Symbol[Any, Any]]") [assignment]
mypy: src/codegen/sdk/core/codebase.py#L270
error: List comprehension has incompatible type List[Symbol[Any, Any]]; expected List[TSymbol | TClass | TFunction | TGlobalVar] [misc]
mypy: src/codegen/sdk/core/codebase.py#L279
error: "cached_property[ProxyProperty[[Codebase[TSourceFile, TDirectory, TSymbol, TClass, TFunction, TImport, TGlobalVar, TInterface, TTypeAlias, TParameter, TCodeBlock], DefaultNamedArg(list[str] | Literal['*'] | None, 'extensions')], list[TSourceFile] | list[File]]]" not callable [operator]
mypy: src/codegen/sdk/core/codebase.py#L317
error: "CodeOwner" expects 7 type arguments, but 1 given [type-arg]
mypy: src/codegen/sdk/core/codebase.py#L340
error: Argument 1 to "list" has incompatible type "dict_values[Path, Directory[Any, Any, Any, Any, Any, Any, Any]]"; expected "Iterable[TDirectory]" [arg-type]