Fixed bug that results in false positive "reportPossiblyUnboundVariab…#10876
Merged
Fixed bug that results in false positive "reportPossiblyUnboundVariab…#10876
Conversation
…le" error on keyword argument names. This addresses #10811.
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: ibis (https://github.com/ibis-project/ibis)
- .../projects/ibis/ibis/expr/types/joins.py:269:13 - error: "equalities" is unbound (reportUnboundVariable)
- 7354 errors, 238 warnings, 0 informations
+ 7353 errors, 238 warnings, 0 informations
sympy (https://github.com/sympy/sympy)
- .../projects/sympy/sympy/parsing/c/c_parser.py:315:25 - error: "value" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/physics/continuum_mechanics/beam.py:3284:73 - error: "line_color" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/physics/continuum_mechanics/beam.py:3386:73 - error: "line_color" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/physics/continuum_mechanics/beam.py:3489:78 - error: "line_color" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/physics/continuum_mechanics/beam.py:3592:78 - error: "line_color" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/physics/continuum_mechanics/beam.py:3764:67 - error: "line_color" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/printing/preview.py:315:17 - error: "stderr" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/printing/preview.py:369:59 - error: "stderr" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/printing/preview.py:386:49 - error: "stderr" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/sympy/sympy/printing/tests/test_c.py:749:50 - error: "attrs" is unbound (reportUnboundVariable)
- .../projects/sympy/sympy/utilities/codegen.py:1228:30 - error: "assign_to" is possibly unbound (reportPossiblyUnboundVariable)
- 37900 errors, 77 warnings, 0 informations
+ 37889 errors, 77 warnings, 0 informations
paasta (https://github.com/yelp/paasta)
- .../projects/paasta/paasta_tools/monitoring_tools.py:563:9 - error: "output" is possibly unbound (reportPossiblyUnboundVariable)
- 1214 errors, 119 warnings, 0 informations
+ 1213 errors, 119 warnings, 0 informations
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- .../projects/scikit-learn/sklearn/datasets/_covtype.py:237:13 - error: "data" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/datasets/_covtype.py:238:13 - error: "target" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/datasets/_covtype.py:246:9 - error: "data" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/datasets/_covtype.py:247:9 - error: "target" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/datasets/_species_distributions.py:282:44 - error: "test" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/datasets/_species_distributions.py:282:55 - error: "train" is possibly unbound (reportPossiblyUnboundVariable)
- ...tmp/mypy_primer/projects/scikit-learn/sklearn/datasets/_twenty_newsgroups.py:619:14 - error: "data" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/linear_model/_logistic.py:486:17 - error: "grad_hess" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/linear_model/_logistic.py:487:17 - error: "func" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/scikit-learn/sklearn/linear_model/_logistic.py:488:17 - error: "grad" is possibly unbound (reportPossiblyUnboundVariable)
- ..._t_sne.py:1038:13 - error: "X_embedded" is possibly unbound (reportPossiblyUnboundVariable)
- 15867 errors, 443 warnings, 0 informations
+ 15855 errors, 443 warnings, 0 informations
prefect (https://github.com/PrefectHQ/prefect)
- .../projects/prefect/src/integrations/prefect-gcp/prefect_gcp/workers/vertex.py:474:17 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:155:53 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:169:59 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:194:46 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:195:46 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:196:46 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:221:46 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:222:46 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/prefect/src/integrations/prefect-gcp/tests/test_credentials.py:223:46 - error: "client_options" is possibly unbound (reportPossiblyUnboundVariable)
- 5264 errors, 167 warnings, 0 informations
+ 5255 errors, 167 warnings, 0 informations
core (https://github.com/home-assistant/core)
- .../projects/core/homeassistant/components/iskra/config_flow.py:147:25 - error: "device_info" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/core/homeassistant/components/iskra/config_flow.py:183:21 - error: "device_info" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/core/homeassistant/components/iskra/config_flow.py:219:21 - error: "device_info" is possibly unbound (reportPossiblyUnboundVariable)
- 72853 errors, 286 warnings, 0 informations
+ 72850 errors, 286 warnings, 0 informations
pycryptodome (https://github.com/Legrandin/pycryptodome)
- .../projects/pycryptodome/lib/Crypto/PublicKey/RSA.py:536:34 - error: "p" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/pycryptodome/lib/Crypto/PublicKey/RSA.py:536:39 - error: "q" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/pycryptodome/lib/Crypto/PublicKey/RSA.py:640:37 - error: "p" is possibly unbound (reportPossiblyUnboundVariable)
- 1679 errors, 55 warnings, 0 informations
+ 1676 errors, 55 warnings, 0 informations
alerta (https://github.com/alerta/alerta)
- .../projects/alerta/alerta/webhooks/telegram.py:94:50 - error: "resource" is possibly unbound (reportPossiblyUnboundVariable)
- .../projects/alerta/alerta/webhooks/telegram.py:94:69 - error: "event" is possibly unbound (reportPossiblyUnboundVariable)
- 545 errors, 38 warnings, 0 informations
+ 543 errors, 38 warnings, 0 informations
xarray (https://github.com/pydata/xarray)
- .../projects/xarray/xarray/backends/api.py:1851:17 - error: "ids" is possibly unbound (reportPossiblyUnboundVariable)
- 2288 errors, 182 warnings, 0 informations
+ 2287 errors, 182 warnings, 0 informations
pandera (https://github.com/pandera-dev/pandera)
- .../projects/pandera/pandera/decorators.py:725:17 - error: "schema" is unbound (reportUnboundVariable)
- 2264 errors, 115 warnings, 0 informations
+ 2263 errors, 115 warnings, 0 informations
jax (https://github.com/google/jax)
- .../projects/jax/jax/_src/internal_test_util/test_harnesses.py:1848:13 - error: "shape" is possibly unbound (reportPossiblyUnboundVariable)
- 3842 errors, 53 warnings, 0 informations
+ 3841 errors, 53 warnings, 0 informations
arviz (https://github.com/arviz-devs/arviz)
- .../projects/arviz/arviz/plots/ppcplot.py:347:9 - error: "pp_sample_ix" is possibly unbound (reportPossiblyUnboundVariable)
- 1289 errors, 55 warnings, 0 informations
+ 1288 errors, 55 warnings, 0 informations
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…le" error on keyword argument names. This addresses #10811.