config\production.py:49: error: Need type annotation for "HF_API_KEYS" (hint: "HF_API_KEYS: list[] = ...") [var-annotated] tests\conftest.py:43: error: The return type of a generator function should be "Generator" or one of its supertypes [misc] scripts\smoke_api.py:89: error: Argument 1 to "require" has incompatible type "Any | None"; expected "bool" [arg-type] scripts\smoke_api.py:96: error: Unsupported right operand type for in ("Any | None") [operator] scripts\smoke_api.py:220: error: Argument 1 to "require" has incompatible type "Any | None"; expected "bool" [arg-type] scripts\smoke_api.py:221: error: Argument 1 to "require" has incompatible type "Any | None"; expected "bool" [arg-type] scripts\smoke_api.py:229: error: Argument 1 to "require" has incompatible type "Any | list[Any]"; expected "bool" [arg-type] scripts\smoke_api.py:248: error: Argument 1 to "require" has incompatible type "Any | None"; expected "bool" [arg-type] scripts\smoke_api.py:283: error: Argument 1 to "require" has incompatible type "Any | None"; expected "bool" [arg-type] utils\lazy_loader.py:41: error: Incompatible return value type (got "T@__init__", expected "T@get | None") [return-value] utils\lazy_loader.py:57: error: Incompatible return value type (got "T@__init__", expected "T@get | None") [return-value] utils\email_service.py:75: error: Incompatible default for parameter "details" (default has type "None", parameter has type "dict[Any, Any]") [assignment] utils\email_service.py:75: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True utils\email_service.py:75: note: Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase training\trainer.py:127: error: Need type annotation for "loss_history" (hint: "loss_history: list[] = ...") [var-annotated] training\trainer.py:135: error: Need type annotation for "error_log" (hint: "error_log: list[] = ...") [var-annotated] services\turso_db.py:330: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\local_image_runtime.py:27: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\local_image_runtime.py:28: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\local_image_runtime.py:29: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] daemon\learner.py:145: error: Need type annotation for "error_buffer" (hint: "error_buffer: list[] = ...") [var-annotated] daemon\learner.py:409: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] daemon\learner.py:410: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] training\memmap_dataset.py:90: error: Name "os" is not defined [name-defined] training\memmap_dataset.py:114: error: Incompatible types in assignment (expression has type "memmap[Any, Any]", variable has type "None") [assignment] training\memmap_dataset.py:132: error: Unsupported operand types for + ("object" and "int") [operator] training\memmap_dataset.py:135: error: Argument 1 to "len" has incompatible type "None"; expected "Sized" [arg-type] training\memmap_dataset.py:136: error: Unsupported operand types for > ("int" and "object") [operator] training\memmap_dataset.py:137: error: Unsupported operand types for + ("object" and "int") [operator] training\memmap_dataset.py:141: error: Unsupported target for indexed assignment ("None") [index] training\memmap_dataset.py:141: error: Slice index must be an integer, SupportsIndex or None [misc] training\memmap_dataset.py:141: error: Unsupported operand types for + ("object" and "int") [operator] training\memmap_dataset.py:152: error: "None" has no attribute "flush" [attr-defined] training\memmap_dataset.py:172: error: No overload variant of "int" matches argument type "object" [call-overload] training\memmap_dataset.py:172: note: Possible overload variants: training\memmap_dataset.py:172: note: def int(str | Buffer | SupportsInt | SupportsIndex = ..., /) -> int training\memmap_dataset.py:172: note: def int(str | bytes | bytearray, /, base: SupportsIndex) -> int training\memmap_dataset.py:191: error: No overload variant of "int" matches argument type "object" [call-overload] training\memmap_dataset.py:191: note: Possible overload variants: training\memmap_dataset.py:191: note: def int(str | Buffer | SupportsInt | SupportsIndex = ..., /) -> int training\memmap_dataset.py:191: note: def int(str | bytes | bytearray, /, base: SupportsIndex) -> int training\memmap_dataset.py:196: error: Value of type "None" is not indexable [index] training\memmap_dataset.py:210: error: Unsupported operand types for * ("object" and "int") [operator] training\memmap_dataset.py:228: error: Name "json" is not defined [name-defined] training\memmap_dataset.py:264: error: Need type annotation for "buffer" (hint: "buffer: list[] = ...") [var-annotated] model\hybrid_vision.py:37: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] model\hybrid_vision.py:38: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\cloudflare_crawl.py:54: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\cloudflare_crawl.py:55: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\image_prompt_library.py:22: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] tests\test_runtime_bitnet.py:17: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] tests\test_runtime_airllm.py:14: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] train.py:19: error: Library stubs not installed for "yaml" [import-untyped] train.py:19: note: Hint: "python3 -m pip install types-PyYAML" train.py:19: note: (or run "mypy --install-types" to install all missing stub packages) train.py:19: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports train.py:64: error: Argument "timeout" to "get" of "ClientSession" has incompatible type "int"; expected "ClientTimeout | _SENTINEL | None" [arg-type] train.py:110: error: Argument "timeout" to "get" of "ClientSession" has incompatible type "int"; expected "ClientTimeout | _SENTINEL | None" [arg-type] train.py:384: error: Unsupported operand types for >= ("int" and "object") [operator] train.py:387: error: Unsupported operand types for < ("int" and "object") [operator] services\cosmo_model.py:75: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\smart_mode_service.py:47: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] services\smart_mode_service.py:52: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] api\route.py:183: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked] app.py:6: error: Item "TextIO" of "TextIO | Any" has no attribute "reconfigure" [union-attr] app.py:7: error: Item "TextIO" of "TextIO | Any" has no attribute "reconfigure" [union-attr] tests\test_research_sync.py:110: error: Incompatible types in assignment (expression has type "def fake_check_robots(_url: str) -> Coroutine[Any, Any, bool]", variable has type "def _check_robots(self, url: str) -> Coroutine[Any, Any, bool]") [assignment] tests\test_research_sync.py:110: note: Error code "assignment" not covered by "type: ignore" comment tests\test_research_sync.py:111: error: Incompatible types in assignment (expression has type "def fake_fetch_url(_url: str) -> Coroutine[Any, Any, str]", variable has type "def _fetch_url(self, url: str) -> Coroutine[Any, Any, str | None]") [assignment] tests\test_research_sync.py:111: note: Error code "assignment" not covered by "type: ignore" comment tests\test_research_sync.py:112: error: Incompatible types in assignment (expression has type "def fake_extract_content(_html: str, current_url: str) -> CrawlResult", variable has type "def _extract_content(self, html: str, url: str) -> CrawlResult") [assignment] tests\test_research_sync.py:112: note: Error code "assignment" not covered by "type: ignore" comment Found 41 errors in 11 files (checked 140 source files)