Skip to content

Enable strict type checking and resolve pytype workarounds #206

@manaspros

Description

@manaspros

Problem

While the codebase uses type hints extensively, type checking is not enforced strictly:

  1. Pytype configured with keep_going = true (ignores errors and continues)
  2. Active TODO for pytype bug in entity_agent.py:30:
    # TODO: b/313715068 - remove disable once pytype bug is fixed.                                                     
    # pytype: disable=override-error                                                                                   
  3. No mypy or strict type checking in CI pipeline
  4. Multiple # type: ignore pragmas scattered across codebase
  5. Type coverage not tracked or enforced for new code

Current Configuration

pyproject.toml
[tool.pytype]
keep_going = true # ← Continues past errors

This means type errors exist but are silently ignored.

i can work on it too

Metadata

Metadata

Assignees

No one assigned

    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