I am not using github. I got the dependencies covered. The problem is that it runs with different flags.
If I run mypy tptools/util.py, it runs without errors: "Success: no issues found in 1 source file"
I have mypy configured in pyproject.toml with strict = true and warn_unreachable = true.
If pre-commit invokes mypy, it fails with:
tptools/util.py:11: error: Function is missing a type annotation [no-untyped-def]
this leaves me quite confused, and not only because the function is actually typed:
def json_dump_with_default_x(
obj: object,
methodname: str = "json",
) -> object:


