Skip to content
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

Whitespace and comments in argument lists are sometimes omitted in translation #22

Closed
JukkaL opened this issue Dec 13, 2012 · 1 comment
Labels
bug mypy got something wrong

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Dec 13, 2012

This code

void f(x,  # Foo
       int y):
    pass

gets translated into

def f(x, y):
    pass

Note that the line break, spaces and comment before int y are omitted. The translation should preserve the line break, whitespace and comments in this case and only remove the type int.

The translation works correctly if we remove the type int from the source program.

@JukkaL
Copy link
Collaborator Author

JukkaL commented Jun 27, 2013

This is no longer relevant with the new syntax.

@JukkaL JukkaL closed this as completed Jun 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong
Projects
None yet
Development

No branches or pull requests

1 participant