Skip to content

Disallow plain Concatenate[...] as type hint #21425

Open

Description

@A5rocks

Bug Report

Pretty sure this is not OK.

To Reproduce

from typing import Concatenate

x: Concatenate[...]

Expected Behavior

error

Actual Behavior

no error

Your Environment

reproduced in mypy-play.

  • Mypy version used: 1.20.2
  • Mypy command-line flags: N/A
  • Mypy configuration options from mypy.ini (and other config files): N/A
  • Python version used: 3.12

Activity

  1. added
    bugmypy got something wrong
    topic-paramspecPEP 612, ParamSpec, Concatenate
    on May 7, 2026
  2. changed the title [-]Disallow plain `Concatenate[...]`[/-] [+]Disallow plain `Concatenate[...]` as type hint[/+] on May 7, 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 wrongtopic-paramspecPEP 612, ParamSpec, Concatenate

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions