Reproduction for pydantic/pydantic#7280 Run: poetry install poetry run mypy . poetry run pytest pydantic_hmm.py