GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TypeForm incremental inconsistencies · Issue #21587 · python/mypy

TypeForm incremental inconsistencies #21587

New issue
Copy link
New issue
Copy link
Closed
#21591
Closed
TypeForm incremental inconsistencies#21587
#21591
Copy link
Labels
bugmypy got something wrongpriority-0-hightopic-incrementaltopic-type-formTypeForm might fix this

Description

@gentlegiantJGC
gentlegiantJGC
opened on Jun 4, 2026
Issue body actions

Bug Report

The following example does not error when running mypy after deleting .mypy_cache or when running with --no-incremental but does error after editing b.py.
It seems to be caching TypeForm as type.

To Reproduce

  1. Download the code either from the zip archive or code blocks.
  2. Run mypy. It outputs Success: no issues found in 2 source files
  3. Make a whitespace change to b.py (eg add a new line at the end)
  4. Run mypy. It outputs the following
src\b.py:3: error: Argument 1 to "test" has incompatible type "str"; expected "type[Never]"  [arg-type]
Found 1 error in 1 file (checked 2 source files)
  1. Deleting .mypy_cache and running mypy or running mypy --no-incremental outputs the same as 2.

mypy.zip

# src/a.py
from typing import TypeVar
from typing_extensions import TypeForm

T = TypeVar('T')

def test(arg: TypeForm[T]) -> None:
    raise NotImplementedError
# src/b.py
from a import test

test("int")
; mypy.ini
[mypy]
disallow_untyped_defs = True
check_untyped_defs = True
warn_return_any = True
python_version = 3.14
explicit_package_bases = True
mypy_path = $MYPY_CONFIG_FILE_DIR/src
files =
    src
enable_incomplete_feature = TypeForm

Expected Behavior

I expect the output from mypy to be consistent regardless of caching.

Your Environment

  • Mypy version used: 2.1.0
  • Python version used: 3.14
  • typing-extensions: 4.15.0

Activity

  1. gentlegiantJGC
    added
    bugmypy got something wrong
    on Jun 4, 2026
  2. gentlegiantJGC commented on Jun 4, 2026

    @gentlegiantJGC
    gentlegiantJGC
    on Jun 4, 2026
    Author
    More actions

    @davidfstr for visibility

  3. ilevkivskyi
    added
    topic-type-formTypeForm might fix this
    topic-incremental
    priority-0-high
    on Jun 4, 2026
  4. ilevkivskyi
    added a commit that references this issue on Jun 4, 2026

    Add support for TypeForm in incremental mode (#21591)

    d69ab34
  5. ilevkivskyi
    closed this as completedin #21591on Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongpriority-0-hightopic-incrementaltopic-type-formTypeForm might fix this

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.