-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Use double quotes errors in 'dont mix' and 'has no attributes' #10296
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
Conversation
Please let me know if you feel double quotes are not needed for the above error message |
mypy/plugins/attrs.py
Outdated
@@ -212,7 +212,7 @@ def _determine_eq_order(ctx: 'mypy.plugin.ClassDefContext') -> bool: | |||
order = _get_decorator_optional_bool_argument(ctx, 'order') | |||
|
|||
if cmp is not None and any((eq is not None, order is not None)): | |||
ctx.api.fail("Don't mix `cmp` with `eq' and `order`", ctx.reason) | |||
ctx.api.fail('Don\'t mix "%s" with "%s" and "%s"' % (cmp, eq, order), ctx.reason) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes the error message worse. We shouldn't be interpolating the values for these arguments here.
ctx.api.fail('Don\'t mix "%s" with "%s" and "%s"' % (cmp, eq, order), ctx.reason) | |
ctx.api.fail('Don\'t mix "cmp" with "eq" and "order"', ctx.reason) |
mypy/plugins/attrs.py
Outdated
@@ -226,7 +226,7 @@ def _determine_eq_order(ctx: 'mypy.plugin.ClassDefContext') -> bool: | |||
order = eq | |||
|
|||
if eq is False and order is True: | |||
ctx.api.fail("eq must be True if order is True", ctx.reason) | |||
ctx.api.fail('eq must be "True" if order is "True"', ctx.reason) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for quotes here, I think just plain True reads more clearly as a Python literal
b10a548
to
add21c6
Compare
Diff from mypy_primer, showing the effect of this PR on open source code: pip (https://github.com/pypa/pip.git)
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'ensure_str'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "ensure_str"
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'ensure_text'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "ensure_text"
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'reraise'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "reraise"
scipy (https://github.com/scipy/scipy.git)
- scipy/special/spfun_stats.py:36: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/spfun_stats.py:36: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/stats/_tukeylambda_stats.py:3: error: Module 'scipy.special' has no attribute 'beta' [attr-defined]
+ scipy/stats/_tukeylambda_stats.py:3: error: Module "scipy.special" has no attribute "beta" [attr-defined]
- scipy/special/tests/test_wright_bessel.py:24: error: Module 'scipy.special' has no attribute 'rgamma'; maybe "gamma" or "digamma"? [attr-defined]
+ scipy/special/tests/test_wright_bessel.py:24: error: Module "scipy.special" has no attribute "rgamma"; maybe "gamma" or "digamma"? [attr-defined]
- scipy/special/tests/test_wright_bessel.py:24: error: Module 'scipy.special' has no attribute 'wright_bessel' [attr-defined]
+ scipy/special/tests/test_wright_bessel.py:24: error: Module "scipy.special" has no attribute "wright_bessel" [attr-defined]
- scipy/special/tests/test_spfun_stats.py:6: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_spfun_stats.py:6: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_logit.py:4: error: Module 'scipy.special' has no attribute 'expit' [attr-defined]
+ scipy/special/tests/test_logit.py:4: error: Module "scipy.special" has no attribute "expit" [attr-defined]
- scipy/special/tests/test_logit.py:4: error: Module 'scipy.special' has no attribute 'logit' [attr-defined]
+ scipy/special/tests/test_logit.py:4: error: Module "scipy.special" has no attribute "logit" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'boxcox' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "boxcox" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'boxcox1p' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "boxcox1p" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'inv_boxcox' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "inv_boxcox" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'inv_boxcox1p' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "inv_boxcox1p" [attr-defined]
- scipy/integrate/_quadrature.py:13: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/integrate/_quadrature.py:13: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_spence.py:4: error: Module 'scipy.special' has no attribute 'spence' [attr-defined]
+ scipy/special/tests/test_spence.py:4: error: Module "scipy.special" has no attribute "spence" [attr-defined]
- scipy/special/tests/test_loggamma.py:5: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_loggamma.py:5: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_loggamma.py:5: error: Module 'scipy.special' has no attribute 'loggamma'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_loggamma.py:5: error: Module "scipy.special" has no attribute "loggamma"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'kolmogi' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "kolmogi" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'kolmogorov' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "kolmogorov" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'smirnov' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "smirnov" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'smirnovi' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "smirnovi" [attr-defined]
- scipy/special/tests/test_basic.py:37: error: Module 'scipy.special' has no attribute 'ellipk' [attr-defined]
+ scipy/special/tests/test_basic.py:37: error: Module "scipy.special" has no attribute "ellipk" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'chndtr' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "chndtr" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'entr' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "entr" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'ive'; maybe "iv"? [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "ive"; maybe "iv"? [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'xlogy' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "xlogy" [attr-defined]
- scipy/stats/_hypotests.py:10: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/stats/_hypotests.py:10: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'bdtrik' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "bdtrik" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'beta' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "beta" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'betainc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "betainc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'betaincinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "betaincinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'binom' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "binom" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtri' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtri" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtria' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtria" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtrib' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtrib" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'cbrt' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "cbrt" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'chndtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "chndtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipe' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipe" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipeinc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipeinc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipj' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipj" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipk' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipk" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipkinc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipkinc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipkm1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipkm1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erf' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erf" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfcinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfcinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_genlaguerre'; maybe "genlaguerre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_genlaguerre"; maybe "genlaguerre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_hermite' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_hermite" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_laguerre'; maybe "laguerre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_laguerre"; maybe "laguerre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_legendre'; maybe "legendre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_legendre"; maybe "legendre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'exp1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "exp1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expi' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expi" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expm1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expm1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammainc'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammainc"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaincc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaincc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammainccinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammainccinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaincinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaincinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrib' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrib" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrix' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrix" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'jn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "jn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'kn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "kn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'log1p' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "log1p" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'lpmv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "lpmv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_cem'; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_cem"; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modcem1'; maybe "mathieu_odd_coef"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modcem1"; maybe "mathieu_odd_coef"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modcem2'; maybe "mathieu_odd_coef"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modcem2"; maybe "mathieu_odd_coef"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modsem1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modsem1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modsem2' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modsem2" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_sem'; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_sem"; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'nbdtrik'; maybe "ndtri"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "nbdtrik"; maybe "ndtri"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'owens_t' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "owens_t" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'pdtrik' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "pdtrik" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'poch' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "poch" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'sph_harm' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "sph_harm" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'wright_bessel' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "wright_bessel" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'yn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "yn" [attr-defined]
- scipy/stats/tests/test_contingency.py:6: error: Module 'scipy.special' has no attribute 'xlogy' [attr-defined]
+ scipy/stats/tests/test_contingency.py:6: error: Module "scipy.special" has no attribute "xlogy" [attr-defined]
streamlit (https://github.com/streamlit/streamlit.git)
- lib/streamlit/commands/page_config.py:17:1: error: Module 'streamlit.proto' has no attribute 'PageConfig_pb2' [attr-defined]
+ lib/streamlit/commands/page_config.py:17:1: error: Module "streamlit.proto" has no attribute "PageConfig_pb2" [attr-defined]
poetry (https://github.com/python-poetry/poetry.git)
- poetry/repositories/legacy_repository.py:60: error: Module 'urllib' has no attribute 'quote'
+ poetry/repositories/legacy_repository.py:60: error: Module "urllib" has no attribute "quote"
|
Diff from mypy_primer, showing the effect of this PR on open source code: streamlit (https://github.com/streamlit/streamlit.git)
- lib/streamlit/commands/page_config.py:17:1: error: Module 'streamlit.proto' has no attribute 'PageConfig_pb2' [attr-defined]
+ lib/streamlit/commands/page_config.py:17:1: error: Module "streamlit.proto" has no attribute "PageConfig_pb2" [attr-defined]
scipy (https://github.com/scipy/scipy.git)
- scipy/special/spfun_stats.py:36: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/spfun_stats.py:36: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/stats/_tukeylambda_stats.py:3: error: Module 'scipy.special' has no attribute 'beta' [attr-defined]
+ scipy/stats/_tukeylambda_stats.py:3: error: Module "scipy.special" has no attribute "beta" [attr-defined]
- scipy/special/tests/test_wright_bessel.py:24: error: Module 'scipy.special' has no attribute 'rgamma'; maybe "gamma" or "digamma"? [attr-defined]
+ scipy/special/tests/test_wright_bessel.py:24: error: Module "scipy.special" has no attribute "rgamma"; maybe "gamma" or "digamma"? [attr-defined]
- scipy/special/tests/test_wright_bessel.py:24: error: Module 'scipy.special' has no attribute 'wright_bessel' [attr-defined]
+ scipy/special/tests/test_wright_bessel.py:24: error: Module "scipy.special" has no attribute "wright_bessel" [attr-defined]
- scipy/special/tests/test_spfun_stats.py:6: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_spfun_stats.py:6: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_logit.py:4: error: Module 'scipy.special' has no attribute 'expit' [attr-defined]
+ scipy/special/tests/test_logit.py:4: error: Module "scipy.special" has no attribute "expit" [attr-defined]
- scipy/special/tests/test_logit.py:4: error: Module 'scipy.special' has no attribute 'logit' [attr-defined]
+ scipy/special/tests/test_logit.py:4: error: Module "scipy.special" has no attribute "logit" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'boxcox' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "boxcox" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'boxcox1p' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "boxcox1p" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'inv_boxcox' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "inv_boxcox" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'inv_boxcox1p' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "inv_boxcox1p" [attr-defined]
- scipy/integrate/_quadrature.py:13: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/integrate/_quadrature.py:13: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_spence.py:4: error: Module 'scipy.special' has no attribute 'spence' [attr-defined]
+ scipy/special/tests/test_spence.py:4: error: Module "scipy.special" has no attribute "spence" [attr-defined]
- scipy/special/tests/test_loggamma.py:5: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_loggamma.py:5: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_loggamma.py:5: error: Module 'scipy.special' has no attribute 'loggamma'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_loggamma.py:5: error: Module "scipy.special" has no attribute "loggamma"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'kolmogi' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "kolmogi" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'kolmogorov' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "kolmogorov" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'smirnov' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "smirnov" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'smirnovi' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "smirnovi" [attr-defined]
- scipy/special/tests/test_basic.py:37: error: Module 'scipy.special' has no attribute 'ellipk' [attr-defined]
+ scipy/special/tests/test_basic.py:37: error: Module "scipy.special" has no attribute "ellipk" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'chndtr' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "chndtr" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'entr' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "entr" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'ive'; maybe "iv"? [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "ive"; maybe "iv"? [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'xlogy' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "xlogy" [attr-defined]
- scipy/stats/_hypotests.py:10: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/stats/_hypotests.py:10: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'bdtrik' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "bdtrik" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'beta' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "beta" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'betainc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "betainc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'betaincinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "betaincinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'binom' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "binom" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtri' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtri" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtria' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtria" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtrib' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtrib" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'cbrt' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "cbrt" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'chndtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "chndtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipe' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipe" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipeinc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipeinc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipj' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipj" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipk' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipk" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipkinc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipkinc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipkm1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipkm1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erf' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erf" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfcinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfcinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_genlaguerre'; maybe "genlaguerre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_genlaguerre"; maybe "genlaguerre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_hermite' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_hermite" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_laguerre'; maybe "laguerre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_laguerre"; maybe "laguerre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_legendre'; maybe "legendre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_legendre"; maybe "legendre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'exp1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "exp1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expi' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expi" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expm1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expm1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammainc'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammainc"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaincc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaincc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammainccinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammainccinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaincinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaincinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrib' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrib" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrix' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrix" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'jn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "jn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'kn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "kn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'log1p' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "log1p" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'lpmv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "lpmv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_cem'; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_cem"; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modcem1'; maybe "mathieu_odd_coef"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modcem1"; maybe "mathieu_odd_coef"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modcem2'; maybe "mathieu_odd_coef"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modcem2"; maybe "mathieu_odd_coef"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modsem1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modsem1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modsem2' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modsem2" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_sem'; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_sem"; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'nbdtrik'; maybe "ndtri"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "nbdtrik"; maybe "ndtri"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'owens_t' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "owens_t" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'pdtrik' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "pdtrik" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'poch' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "poch" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'sph_harm' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "sph_harm" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'wright_bessel' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "wright_bessel" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'yn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "yn" [attr-defined]
- scipy/stats/tests/test_contingency.py:6: error: Module 'scipy.special' has no attribute 'xlogy' [attr-defined]
+ scipy/stats/tests/test_contingency.py:6: error: Module "scipy.special" has no attribute "xlogy" [attr-defined]
pip (https://github.com/pypa/pip.git)
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'ensure_str'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "ensure_str"
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'ensure_text'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "ensure_text"
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'reraise'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "reraise"
poetry (https://github.com/python-poetry/poetry.git)
- poetry/repositories/legacy_repository.py:60: error: Module 'urllib' has no attribute 'quote'
+ poetry/repositories/legacy_repository.py:60: error: Module "urllib" has no attribute "quote"
|
Diff from mypy_primer, showing the effect of this PR on open source code: streamlit (https://github.com/streamlit/streamlit.git)
- lib/streamlit/commands/page_config.py:17:1: error: Module 'streamlit.proto' has no attribute 'PageConfig_pb2' [attr-defined]
+ lib/streamlit/commands/page_config.py:17:1: error: Module "streamlit.proto" has no attribute "PageConfig_pb2" [attr-defined]
pip (https://github.com/pypa/pip.git)
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'ensure_str'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "ensure_str"
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'ensure_text'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "ensure_text"
- src/pip/_internal/operations/install/wheel.py:42: error: Module 'pip._vendor.six' has no attribute 'reraise'
+ src/pip/_internal/operations/install/wheel.py:42: error: Module "pip._vendor.six" has no attribute "reraise"
scipy (https://github.com/scipy/scipy.git)
- scipy/special/spfun_stats.py:36: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/spfun_stats.py:36: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/stats/_tukeylambda_stats.py:3: error: Module 'scipy.special' has no attribute 'beta' [attr-defined]
+ scipy/stats/_tukeylambda_stats.py:3: error: Module "scipy.special" has no attribute "beta" [attr-defined]
- scipy/special/tests/test_wright_bessel.py:24: error: Module 'scipy.special' has no attribute 'rgamma'; maybe "gamma" or "digamma"? [attr-defined]
+ scipy/special/tests/test_wright_bessel.py:24: error: Module "scipy.special" has no attribute "rgamma"; maybe "gamma" or "digamma"? [attr-defined]
- scipy/special/tests/test_wright_bessel.py:24: error: Module 'scipy.special' has no attribute 'wright_bessel' [attr-defined]
+ scipy/special/tests/test_wright_bessel.py:24: error: Module "scipy.special" has no attribute "wright_bessel" [attr-defined]
- scipy/special/tests/test_spfun_stats.py:6: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_spfun_stats.py:6: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_logit.py:4: error: Module 'scipy.special' has no attribute 'expit' [attr-defined]
+ scipy/special/tests/test_logit.py:4: error: Module "scipy.special" has no attribute "expit" [attr-defined]
- scipy/special/tests/test_logit.py:4: error: Module 'scipy.special' has no attribute 'logit' [attr-defined]
+ scipy/special/tests/test_logit.py:4: error: Module "scipy.special" has no attribute "logit" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'boxcox' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "boxcox" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'boxcox1p' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "boxcox1p" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'inv_boxcox' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "inv_boxcox" [attr-defined]
- scipy/special/tests/test_boxcox.py:3: error: Module 'scipy.special' has no attribute 'inv_boxcox1p' [attr-defined]
+ scipy/special/tests/test_boxcox.py:3: error: Module "scipy.special" has no attribute "inv_boxcox1p" [attr-defined]
- scipy/integrate/_quadrature.py:13: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/integrate/_quadrature.py:13: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_spence.py:4: error: Module 'scipy.special' has no attribute 'spence' [attr-defined]
+ scipy/special/tests/test_spence.py:4: error: Module "scipy.special" has no attribute "spence" [attr-defined]
- scipy/special/tests/test_loggamma.py:5: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_loggamma.py:5: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_loggamma.py:5: error: Module 'scipy.special' has no attribute 'loggamma'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_loggamma.py:5: error: Module "scipy.special" has no attribute "loggamma"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'kolmogi' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "kolmogi" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'kolmogorov' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "kolmogorov" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'smirnov' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "smirnov" [attr-defined]
- scipy/special/tests/test_kolmogorov.py:9: error: Module 'scipy.special' has no attribute 'smirnovi' [attr-defined]
+ scipy/special/tests/test_kolmogorov.py:9: error: Module "scipy.special" has no attribute "smirnovi" [attr-defined]
- scipy/special/tests/test_basic.py:37: error: Module 'scipy.special' has no attribute 'ellipk' [attr-defined]
+ scipy/special/tests/test_basic.py:37: error: Module "scipy.special" has no attribute "ellipk" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'chndtr' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "chndtr" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'entr' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "entr" [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'ive'; maybe "iv"? [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "ive"; maybe "iv"? [attr-defined]
- scipy/stats/_distn_infrastructure.py:20: error: Module 'scipy.special' has no attribute 'xlogy' [attr-defined]
+ scipy/stats/_distn_infrastructure.py:20: error: Module "scipy.special" has no attribute "xlogy" [attr-defined]
- scipy/stats/_hypotests.py:10: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/stats/_hypotests.py:10: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'bdtrik' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "bdtrik" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'beta' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "beta" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'betainc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "betainc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'betaincinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "betaincinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'binom' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "binom" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtri' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtri" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtria' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtria" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'btdtrib' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "btdtrib" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'cbrt' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "cbrt" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'chndtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "chndtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipe' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipe" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipeinc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipeinc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipj' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipj" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipk' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipk" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipkinc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipkinc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'ellipkm1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "ellipkm1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erf' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erf" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfcinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfcinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'erfinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "erfinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_genlaguerre'; maybe "genlaguerre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_genlaguerre"; maybe "genlaguerre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_hermite' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_hermite" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_laguerre'; maybe "laguerre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_laguerre"; maybe "laguerre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'eval_legendre'; maybe "legendre"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "eval_legendre"; maybe "legendre"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'exp1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "exp1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expi' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expi" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expm1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expm1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'expn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "expn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammainc'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammainc"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaincc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaincc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammainccinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammainccinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaincinv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaincinv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gammaln'; maybe "gamma"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gammaln"; maybe "gamma"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtr' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtr" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrc' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrc" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrib' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrib" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'gdtrix' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "gdtrix" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'jn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "jn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'kn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "kn" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'log1p' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "log1p" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'lpmv' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "lpmv" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_cem'; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_cem"; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modcem1'; maybe "mathieu_odd_coef"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modcem1"; maybe "mathieu_odd_coef"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modcem2'; maybe "mathieu_odd_coef"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modcem2"; maybe "mathieu_odd_coef"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modsem1' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modsem1" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_modsem2' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_modsem2" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'mathieu_sem'; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "mathieu_sem"; maybe "mathieu_b" or "mathieu_a"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'nbdtrik'; maybe "ndtri"? [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "nbdtrik"; maybe "ndtri"? [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'owens_t' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "owens_t" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'pdtrik' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "pdtrik" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'poch' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "poch" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'sph_harm' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "sph_harm" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'wright_bessel' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "wright_bessel" [attr-defined]
- scipy/special/tests/test_data.py:8: error: Module 'scipy.special' has no attribute 'yn' [attr-defined]
+ scipy/special/tests/test_data.py:8: error: Module "scipy.special" has no attribute "yn" [attr-defined]
- scipy/stats/tests/test_contingency.py:6: error: Module 'scipy.special' has no attribute 'xlogy' [attr-defined]
+ scipy/stats/tests/test_contingency.py:6: error: Module "scipy.special" has no attribute "xlogy" [attr-defined]
poetry (https://github.com/python-poetry/poetry.git)
- poetry/repositories/legacy_repository.py:60: error: Module 'urllib' has no attribute 'quote'
+ poetry/repositories/legacy_repository.py:60: error: Module "urllib" has no attribute "quote"
|
@@ -226,7 +226,7 @@ def _determine_eq_order(ctx: 'mypy.plugin.ClassDefContext') -> bool: | |||
order = eq | |||
|
|||
if eq is False and order is True: | |||
ctx.api.fail("eq must be True if order is True", ctx.reason) | |||
ctx.api.fail('eq must be True if order is True', ctx.reason) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could undo this quote change but I don't feel strongly
@hauntsaninja Can you please review and approve the PR? JelleZijlstra has approved. |
(Sorry, I forgot to click merge. I don't think Shantanu needs to review too; these changes are pretty simple. |
Description
This pull request fixes issue reported in #7445 for
dont mix
andhas no attributes
error messagesTest Plan
Updated test cases for the message. New test cases not added.