New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
evhub opened this Issue Feb 26, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@evhub
Contributor

evhub commented Feb 26, 2018

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].

@evhub

This comment has been minimized.

Contributor

evhub commented Feb 26, 2018

Whoops, closing as a duplicate of #4638.

@evhub

This comment has been minimized.

Contributor

evhub commented Feb 28, 2018

Reopening since #4638 was closed as a duplicate. This is fixed by PR #4650.

@evhub evhub reopened this Feb 28, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment