Bug Report
this seems to be a common pattern:
deff() ->Generator[None, None, None]:
returnyield
it can instead be rewritten as:
deff() ->Generator[None, None, None]:
yieldfrom ()
To Reproduce
see above
Expected Behavior
(no errors)
Actual Behavior
$ mypy --warn-unreachable t.pyt.py:5: error: Statement is unreachable [unreachable]Found 1 error in 1 file (checked 1 source file)
Your Environment
- Mypy version used: 1.3.0
- Mypy command-line flags:
--warn-unreachable - Mypy configuration options from
mypy.ini (and other config files): N/A - Python version used: 3.10.6
Bug Report
this seems to be a common pattern:
it can instead be rewritten as:
To Reproduce
see above
Expected Behavior
(no errors)
Actual Behavior
Your Environment
--warn-unreachablemypy.ini(and other config files): N/A