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 all the work with mypy. I'm really enjoying it every time I code now.
I found this oddity which may be a bug.
Here is a short demo.
from typing import Tuple def demo() -> Tuple[str, ...]: matches = [('a', 'b')] return matches[0] if matches else tuple() # demo.py:6: error: Incompatible return value type (got "object", expected "Tuple[str, ...]") def noerror() -> Tuple[str, ...]: matches = [('a', 'b')] if matches: return matches[0] else: return tuple()
The text was updated successfully, but these errors were encountered:
Possibly related to #5392.
Sorry, something went wrong.
This is just a combination of #4975 and #5392. Fixing any of those fill fix this as well.
No branches or pull requests
Thanks for all the work with mypy. I'm really enjoying it every time I code now.
I found this oddity which may be a bug.
Here is a short demo.
The text was updated successfully, but these errors were encountered: