We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for this tool, it's really useful :)
If you have code like this:
foo = object() bar = ( # Comment which explains why this ignored foo.quox # type: ignore[attribute] ) # type: Mapping[str, Distribution]
Then after running com2ann you end up with:
com2ann
foo = object() bar: Mapping[str, int] = ( # Comment which explains why this ignored foo.quox # type: ignore[attribute] ) # type: Mapping[str, int]
which mypy then complains about due to the double signature.
mypy
The intermediate (explanatory) comment doesn't seem to be related, though the type: ignore comment is.
type: ignore
The text was updated successfully, but these errors were encountered:
Fix type comment left on separate continuation line after a type igno…
be67402
…re of expression line (#35) Fixes #34
Thanks, should be fixed now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Thanks for this tool, it's really useful :)
If you have code like this:
Then after running
com2ann
you end up with:which
mypy
then complains about due to the double signature.The intermediate (explanatory) comment doesn't seem to be related, though the
type: ignore
comment is.The text was updated successfully, but these errors were encountered: