We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Please provide more information to help us understand the issue:
class CustomType: myattr: str = '' def _custom_repr(v: CustomType) -> str: return v.myattr @attr.s class MyClass(object) myvar: CustomType = attr.ib(repr=_custom_repr)
error: No overload variant matches argument type "Callable[[Any], str]"
--python-version 3.6 --python-executable python3.6
ignore_missing_imports = True
possibly related to: #6157 , #8092
The text was updated successfully, but these errors were encountered:
I tried running mypy on this snippet locally:
import attr class CustomType: myattr: str = '' def _custom_repr(v: CustomType) -> str: return v.myattr @attr.s class MyClass(object): myvar: CustomType = attr.ib(repr=_custom_repr)
But I could not reproduce the error with version 0.942 of mypy. So I assume that this issue is now fixed.
Sorry, something went wrong.
No branches or pull requests
Please provide more information to help us understand the issue:
error: No overload variant matches argument type "Callable[[Any], str]"
--python-version 3.6 --python-executable python3.6
ignore_missing_imports = True
the full traceback below.
possibly related to: #6157 , #8092
The text was updated successfully, but these errors were encountered: