Skip to content

(🐞) [1.15 REGRESSION] tuple fallback reports any expression #18770

Open
@KotlinIsland

Description

@KotlinIsland
# mypy: allow-any-expr=False
a: tuple[int, int]
print(a[:]) # Expression type contains "Any" (has type "tuple[int, int]")  [misc]

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-disallow-anyThe disallow-any-* family of flags

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions