Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookup manager type via mro #2276

Merged
merged 3 commits into from
Jul 25, 2024

Commits on Jul 25, 2024

  1. lookup manager type via mro

    there's a lot going on in the test but this specifically breaks lookup through
    `TypeVar` in mypy 1.11 (mypy 1.10 also failed in this way as well -- but was
    fixed in python/mypy#17381)
    
    test originally failing with:
    
    ```
    /tmp/django-stubs/tests/typecheck/models/test_inheritance.yml:114:
    E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output:
    E   Actual:
    E     myapp/models:23: error: Incompatible return value type (got "Bound", expected "T")  [return-value] (diff)
    E   Expected:
    E     (empty)
    ```
    asottile committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    c203556 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c1a661a View commit details
    Browse the repository at this point in the history
  3. even more self_type!

    asottile committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    741f408 View commit details
    Browse the repository at this point in the history