[ty] Improve consistency of pedantic lints complaining about badly named types by charliermarsh · Pull Request #24575 · astral-sh/ruff (original) (raw)
ecosystem-analyzer results
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
| mismatched-type-name | 16 | 0 | 0 |
| Total | 16 | 0 | 0 |
Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.
Raw diff (16 changes)
cloud-init (https://github.com/canonical/cloud-init)
- tests/unittests/test_net_activators.py:48:24 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "mocks", got "Mocks" - tests/unittests/test_net_activators.py:67:24 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "mocks", got "Mocks" - tests/unittests/sources/test_smartos.py:793:9 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "res", got "joyent"
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/vendor/psutil/_psbsd.py:868:9 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "nt_mmap_grouped", got "mmap" - ddtrace/vendor/psutil/_psbsd.py:871:9 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "nt_mmap_ext", got "mmap" - ddtrace/vendor/psutil/_pssunos.py:670:34 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "nt_mmap_grouped", got "mmap" - ddtrace/vendor/psutil/_pssunos.py:671:30 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "nt_mmap_ext", got "mmap"
ignite (https://github.com/pytorch/ignite)
- examples/fast_neural_style/vgg.py:37:34 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "vgg_outputs", got "VggOutputs"
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/ocsp_cache.py:50:9 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "CACHE_KEY_TYPE", got "OcspResponseCacheKey"
pandas (https://github.com/pandas-dev/pandas)
- pandas/tests/frame/indexing/test_indexing.py:1414:36 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "indexer_tuple", got "Indexer" - pandas/tests/frame/test_constructors.py:1614:34 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "named_tuple", got "Pandas"
psycopg (https://github.com/psycopg/psycopg)
- tests/types/test_enum.py:351:9 warning[mismatched-type-name] The name passed to
Enummust match the variable it is assigned to: Expected "enum", got "ByValue"
pycryptodome (https://github.com/Legrandin/pycryptodome)
- lib/Crypto/Cipher/_mode_gcm.py:70:28 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "GHASH_Imp", got "_GHash_Imp"
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/utils/_testing.py:840:23 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "Args", got "args"
scipy (https://github.com/scipy/scipy)
- scipy/stats/tests/test_stats.py:4269:27 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "PowerDivCase", got "Case"
spack (https://github.com/spack/spack)
- lib/spack/spack/test/test_suite.py:265:40 warning[mismatched-type-name] The name passed to
namedtuplemust match the variable it is assigned to: Expected "MockSuite", got "TestSuite"