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
Bug Report
Different behavior between mypy and mypyc.
To Reproduce
from pathlib import Path from typing import TypeVar PathNone = TypeVar("PathNone", Path, None) def test(path: PathNone) -> PathNone: if path is None: return path # is reachable return path / "test"
$ mypy test.py Success: no issues found in 1 source file $ mypyc test.py test.py:9: error: Statement is unreachabl
Your Environment
pyproject.toml
warn_unreachable = true
The text was updated successfully, but these errors were encountered:
Works with 0.931
Sorry, something went wrong.
No branches or pull requests
Bug Report
Different behavior between mypy and mypyc.
To Reproduce
Your Environment
pyproject.toml
:warn_unreachable = true
The text was updated successfully, but these errors were encountered: