[ty] Fallback to metaclass __getattr__ or __getattribute__ by charliermarsh · Pull Request #22985 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
pandera (https://github.com/pandera-dev/pandera)
- tests/io/test_pandas_io.py:1508:17: error[unresolved-attribute] Class
Checkhas no attributencols_gt - tests/io/test_pandas_io.py:1604:24: error[unresolved-attribute] Class
Checkhas no attributedatetime_check - tests/io/test_pandas_io.py:1608:24: error[unresolved-attribute] Class
Checkhas no attributedatetime_check - tests/modin/test_schemas_on_modin.py:299:36: error[unresolved-attribute] Class
Checkhas no attributemodin_eq - tests/pandas/test_checks.py:487:43: error[unresolved-attribute] Class
Checkhas no attributeraise_an_error_check - tests/pandas/test_extensions.py:46:13: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:57:13: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:88:13: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:99:13: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:146:17: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:169:16: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:177:13: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_extensions.py:231:13: error[unresolved-attribute] Class
Checkhas no attributecustom_ge_check - tests/pandas/test_extensions.py:296:9: error[unresolved-attribute] Class
Checkhas no attributecustom_eq - tests/pandas/test_extensions.py:305:5: error[unresolved-attribute] Class
Checkhas no attributecustom_eq - tests/pandas/test_extensions.py:332:13: error[unresolved-attribute] Class
Checkhas no attributecustom_check - tests/pandas/test_schema_statistics.py:761:15: error[unresolved-attribute] Class
Checkhas no attributeno_param_check - tests/pyspark/test_pyspark_check.py:1672:21: error[unresolved-attribute] Class
Checkhas no attributenew_pyspark_check - tests/pyspark/test_schemas_on_pyspark_pandas.py:533:36: error[unresolved-attribute] Class
Checkhas no attributepyspark_pandas_eq - tests/strategies/test_strategies.py:903:17: error[unresolved-attribute] Class
Checkhas no attributecustom_check_with_strategy - Found 1638 diagnostics
- Found 1618 diagnostics
comtypes (https://github.com/enthought/comtypes)
- comtypes/util.py:131:12: error[unresolved-attribute] Class
PyCArgObjecthas no attributep - Found 483 diagnostics
- Found 482 diagnostics
prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:94:28: error[invalid-assignment] Object of type
dict[Any, Any] | int | dict[str, Any] | ... omitted 4 union elementsis not assignable todict[str, Any] - src/integrations/prefect-dbt/prefect_dbt/core/settings.py:99:28: error[invalid-assignment] Object of type
int | dict[Any, Any] | float | ... omitted 3 union elementsis not assignable todict[str, Any] - src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
dict[Any, Any] | int | dict[str, Any] | ... omitted 4 union elementsis not assignable todict[str, Any] - src/prefect/cli/deploy/_core.py:87:21: error[invalid-assignment] Object of type
int | dict[Any, Any] | float | ... omitted 3 union elementsis not assignable todict[str, Any] - src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Argument type
dict[Any, Any] | int | dict[str, Any] | ... omitted 4 union elementsdoes not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT - src/prefect/utilities/templating.py:320:13: error[invalid-assignment] Invalid subscript assignment with key of type
objectand value of typeUnknown | int | dict[str, Any] | ... omitted 4 union elementson object of typedict[str, Any]
- src/prefect/utilities/templating.py:320:13: error[invalid-assignment] Invalid subscript assignment with key of type
objectand value of typeUnknown | dict[str, Any]on object of typedict[str, Any]
- src/prefect/utilities/templating.py:323:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_block_document_references | dict[str, Any], foundlist[Unknown | int | dict[str, Any] | ... omitted 4 union elements]
- src/prefect/utilities/templating.py:323:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_block_document_references | dict[str, Any], foundlist[Unknown | dict[str, Any]]
- src/prefect/utilities/templating.py:437:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, founddict[object, Unknown | int | float | ... omitted 4 union elements]
- src/prefect/utilities/templating.py:437:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, founddict[object, Unknown]
- src/prefect/utilities/templating.py:442:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, foundlist[Unknown | int | float | ... omitted 4 union elements]
- src/prefect/utilities/templating.py:442:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, foundlist[Unknown] - src/prefect/workers/base.py:232:13: error[invalid-argument-type] Argument is incorrect: Argument type
str | dict[str, Any]does not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT
- src/prefect/workers/base.py:232:13: error[invalid-argument-type] Argument is incorrect: Argument type
str | int | dict[str, Any] | ... omitted 3 union elementsdoes not satisfy constraints (str,int,int | float,bool,dict[Any, Any],list[Any],None) of type variableT - src/prefect/workers/base.py:234:22: error[invalid-argument-type] Argument expression after ** must be a mapping type: Found
int | Unknown | float | ... omitted 4 union elements - Found 5378 diagnostics
- Found 5372 diagnostics
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/build/wheel.py:99:20: error[no-matching-overload] No overload of bound method
__init__matches arguments - Found 47 diagnostics
- Found 46 diagnostics
pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/heap/structs.py:214:25: error[invalid-argument-type] Method
__getitem__of typebound method dict[type[c_char], Type].__getitem__(key: type[c_char], /) -> Typecannot be called with key of typetype[Union]on object of typedict[type[c_char], Type] - pwndbg/aglib/heap/structs.py:214:25: error[invalid-argument-type] Method
__getitem__of typebound method dict[type[c_char], Type].__getitem__(key: type[c_char], /) -> Typecannot be called with key of typetype[Structure]on object of typedict[type[c_char], Type] - Found 1937 diagnostics
- Found 1935 diagnostics
No memory usage changes detected ✅