Skip to content

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

@A5rocks

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

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