Skip to content

Stubgen produces <TypeList ...> instead of [...] #4640

@evhub

Description

@evhub

Under mypy 0.560, running stubgen on

import typing

f: typing.Callable[[int, int], int]

produces

# Stubs for prelude (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

import typing

f: typing.Callable[<TypeList int, int>, int]

which is invalid Python syntax. Instead, <TypeList int, int> should be [int, int].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions