Skip to content

Tuple slicing is not supported #886

Closed
@o11c

Description

@o11c

mypy -c 'v = (1, 2, 3); major, minor = v[:2]'

<string>:1: error: Tuple index must an integer literal

Oddly, this was not a failure before I rebased my branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions