-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYPING: Unreachable code #27396
New issue
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
Comments
I think a good idea in the long run. Are these ones now actually unreachable? |
i've not looked in detail, but may be that the type annotation is too restrictive for those public methods. |
The computation.expressions ones are false-positives, at least one of the dtypes.dtypes is false-positive. Pretty sure the same for core.indexers |
Could the code or type annotations be changed to suppress the warning? If not, it would make it difficult to add |
Not super familiar with that module but where is the value of |
It is declared global on L247, so when it is set on L248 that sets it in the module-scope too. |
Yea those lines are in the I think there's just a lot of test code crept in there. Can take a look later and push a PR if it makes sense |
mypy=0.790
|
Running |
I don't know about pandas/pandas/tests/io/test_common.py Lines 557 to 560 in 9a4fcea
which seems legit |
mypy 0.720 introduced
--warn-unreachable
http://mypy-lang.blogspot.com/2019/07/mypy-0720-released.htmlshould we include this in
ci\code_checks.sh
?The text was updated successfully, but these errors were encountered: