[ty] Use the return type of __get__ for descriptor lookups even when __get__ is called with incorrect arguments by AlexWaygood · Pull Request #21424 · astral-sh/ruff (original) (raw)
werkzeug (https://github.com/pallets/werkzeug)
- tests/test_local.py:191:12: warning[possibly-missing-attribute] Attribute
startswithmay be missing on object of typeUnknown | _ProxyLookup - Found 409 diagnostics
- Found 408 diagnostics
xarray (https://github.com/pydata/xarray)
- xarray/computation/rolling.py:115:57: error[unsupported-operator] Operator
not inis not supported for typesHashableandproperty - xarray/computation/rolling.py:120:37: error[invalid-argument-type] Argument to class
tupleis incorrect: ExpectedIterable[object], foundproperty - xarray/computation/rolling.py:1082:63: error[unsupported-operator] Operator
not inis not supported for typesAnyandproperty - xarray/computation/rolling.py:1086:37: error[invalid-argument-type] Argument to class
tupleis incorrect: ExpectedIterable[object], foundproperty - xarray/computation/rolling.py:1092:30: error[no-matching-overload] No overload of bound method
fromkeysmatches arguments - xarray/computation/rolling.py:1093:18: error[not-iterable] Object of type
propertyis not iterable - xarray/computation/rolling.py:1094:16: error[unsupported-operator] Operator
not inis not supported for typesUnknownand(...) -> Unknown, in comparingUnknownwithstr | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown)] | Unknown
- xarray/computation/rolling.py:1094:16: error[unsupported-operator] Operator
not inis not supported for typesUnknownand(...) -> Unknown, in comparingUnknownwithstr | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown)] | dict[Unknown, str | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown)]]
- xarray/computation/rolling.py:1096:9: error[invalid-assignment] Object of type
str | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown)] | Unknownis not assignable to attributecoord_funcof typeMapping[Hashable, str | ((...) -> Unknown)]
- xarray/computation/rolling.py:1096:9: error[invalid-assignment] Object of type
str | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown)] | dict[Unknown, str | ((...) -> Unknown) | Mapping[Any, str | ((...) -> Unknown)]]is not assignable to attributecoord_funcof typeMapping[Hashable, str | ((...) -> Unknown)]
- xarray/computation/rolling.py:1198:25: warning[possibly-missing-attribute] Attribute
itemsmay be missing on object of typeFrozen[Hashable, Variable] | Any | property - xarray/computation/rolling.py:1211:51: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIterable[Unknown], foundproperty - xarray/computation/rolling.py:1212:13: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIterable[Unknown], foundproperty - xarray/computation/weighted.py:203:24: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIterable[Unknown], foundproperty - xarray/core/coordinates.py:1194:14: error[not-iterable] Object of type
propertyis not iterable - xarray/core/coordinates.py:1196:28: error[unsupported-operator] Operator
inis not supported for typesUnknownandproperty - xarray/core/dataset.py:4082:32: error[unresolved-attribute] Object of type
propertyhas no attributeget_all_coords - xarray/core/groupby.py:772:17: error[invalid-assignment] Cannot assign to a subscript on an object of type
propertywith no__setitem__method - xarray/core/groupby.py:944:40: error[unresolved-attribute] Object of type
propertyhas no attributeitems - xarray/core/groupby.py:960:28: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIterable[Unknown], foundproperty - xarray/core/groupby.py:960:46: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIterable[Unknown], foundproperty - xarray/core/groupby.py:1078:25: error[unsupported-operator] Operator
not inis not supported for typesAnyandproperty - xarray/core/groupby.py:1104:32: error[invalid-argument-type] Argument to class
tupleis incorrect: ExpectedIterable[object], foundproperty - xarray/core/groupby.py:1112:49: error[unsupported-operator] Operator
not inis not supported for typesHashableandproperty - xarray/core/indexing.py:145:24: error[unresolved-attribute] Object of type
propertyhas no attributeget - xarray/core/indexing.py:151:14: error[unsupported-operator] Operator
inis not supported for typesAnyandproperty - xarray/core/indexing.py:153:14: error[unsupported-operator] Operator
not inis not supported for typesAnyandproperty - xarray/core/resample.py:127:21: error[unresolved-attribute] Object of type
propertyhas no attributeitems - Found 1804 diagnostics
- Found 1780 diagnostics
pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/heap/ptmalloc.py:517:71: error[not-iterable] Object of type
propertyis not iterable - pwndbg/aglib/heap/ptmalloc.py:523:56: error[invalid-argument-type] Argument to function
round_upis incorrect: Expectedint, foundproperty - pwndbg/aglib/heap/ptmalloc.py:1706:40: error[unsupported-operator] Operator
*is unsupported between objects of typepropertyandLiteral[2] - pwndbg/aglib/heap/ptmalloc.py:2258:48: error[unsupported-operator] Operator
*is unsupported between objects of typepropertyandLiteral[2] - pwndbg/commands/ptmalloc2.py:321:18: error[not-iterable] Object of type
propertyis not iterable - pwndbg/commands/ptmalloc2.py:760:54: error[invalid-argument-type] Argument to function
format_binis incorrect: Expectedint | None, foundproperty - pwndbg/commands/ptmalloc2.py:854:10: error[unsupported-operator] Operator
<is not supported for typesintandproperty - pwndbg/commands/ptmalloc2.py:861:9: error[invalid-assignment] Object of type
propertyis not assignable toint | None - pwndbg/commands/ptmalloc2.py:863:27: error[unsupported-operator] Unary operator
~is unsupported for typeproperty - pwndbg/commands/ptmalloc2.py:866:75: error[unsupported-operator] Operator
-is unsupported between objects of typepropertyandLiteral[1] - pwndbg/commands/ptmalloc2.py:875:29: error[unsupported-operator] Operator
-is unsupported between objects of typeintandint | property - pwndbg/commands/ptmalloc2.py:889:28: error[unsupported-operator] Operator
-is unsupported between objects of typeintandint | property - pwndbg/commands/ptmalloc2.py:907:43: error[invalid-argument-type] Argument to function
__new__is incorrect: ExpectedSupportsIndex, foundproperty | Literal[1] - pwndbg/commands/ptmalloc2.py:908:39: error[unsupported-operator] Operator
+is unsupported between objects of typeintandint | property - pwndbg/commands/ptmalloc2.py:911:67: error[invalid-argument-type] Argument to bound method
unpack_sizeis incorrect: Expectedint, foundint | property - pwndbg/commands/ptmalloc2.py:912:27: error[unsupported-operator] Unary operator
~is unsupported for typeproperty - pwndbg/commands/ptmalloc2.py:923:57: error[unsupported-operator] Operator
+is unsupported between objects of typeintandproperty - pwndbg/commands/ptmalloc2.py:1045:38: error[unsupported-operator] Operator
+is unsupported between objects of typeintandproperty - pwndbg/commands/ptmalloc2.py:1049:33: error[unsupported-operator] Operator
+is unsupported between objects of typeintandproperty - pwndbg/commands/ptmalloc2.py:1054:42: error[unsupported-operator] Operator
*is unsupported between objects of typepropertyandLiteral[2] - pwndbg/commands/ptmalloc2.py:1057:40: error[unsupported-operator] Operator
*is unsupported between objects of typepropertyandLiteral[2] - pwndbg/commands/ptmalloc2.py:1058:42: error[unsupported-operator] Operator
*is unsupported between objects of typepropertyandLiteral[2] - pwndbg/commands/ptmalloc2.py:1103:81: error[unsupported-operator] Operator
<<is unsupported between objects of typepropertyandLiteral[2] - pwndbg/commands/ptmalloc2.py:1115:59: error[unsupported-operator] Operator
<<is unsupported between objects of typepropertyandLiteral[1] - pwndbg/commands/ptmalloc2.py:1116:55: error[unsupported-operator] Operator
<<is unsupported between objects of typepropertyandLiteral[1] - pwndbg/commands/ptmalloc2.py:1128:17: error[unsupported-operator] Operator
+=is unsupported between objects of typeintandproperty - pwndbg/commands/ptmalloc2.py:1134:53: error[invalid-argument-type] Argument to function
readis incorrect: Expectedint, foundproperty - pwndbg/commands/ptmalloc2.py:1136:38: error[unsupported-operator] Operator
*is unsupported between objects of typepropertyandLiteral[2] - pwndbg/commands/ptmalloc2.py:1152:13: error[unsupported-operator] Operator
+=is unsupported between objects of typeintandproperty - pwndbg/commands/ptmalloc2.py:1156:43: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1241:19: error[unresolved-attribute] Object of type
propertyhas no attributebit_length - pwndbg/commands/ptmalloc2.py:1271:13: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1303:28: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1304:27: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1310:27: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1342:24: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1392:31: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1395:47: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1481:31: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - pwndbg/commands/ptmalloc2.py:1484:47: error[unsupported-operator] Operator
*is unsupported between objects of typeLiteral[2]andproperty - Found 2749 diagnostics
- Found 2709 diagnostics
static-frame (https://github.com/static-frame/static-frame)
- static_frame/core/index_datetime.py:153:25: error[invalid-argument-type] Argument to function
lenis incorrect: ExpectedSized, found(Any & <Protocol with members '__len__'> & ~Top[Index[Any]] & ~str) | (datetime64[date | int | None] & <Protocol with members '__len__'>)
- static_frame/core/index_datetime.py:153:25: error[invalid-argument-type] Argument to function
lenis incorrect: ExpectedSized, found(Any & <Protocol with members '__len__'>) | (datetime64[date | int | None] & <Protocol with members '__len__'>)
- static_frame/core/node_iter.py:795:55: error[non-subscriptable] Cannot subscript object of type
propertywith no__getitem__method
- static_frame/core/node_values.py:128:59: warning[unused-ignore-comment] Unused blanket
type: ignoredirective
- static_frame/core/node_values.py:275:20: error[call-non-callable] Object of type
propertyis not callable - static_frame/test/unit/test_container_util.py:359:13: error[unresolved-attribute] Object of type
propertyhas no attributetolist - static_frame/test/unit/test_container_util.py:379:13: error[unresolved-attribute] Object of type
propertyhas no attributetolist - static_frame/test/unit/test_container_util.py:539:22: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedIterable[Unknown], foundproperty - static_frame/test/unit/test_container_util.py:553:13: error[unresolved-attribute] Object of type
propertyhas no attributetolist - static_frame/test/unit/test_container_util.py:568:26: error[unresolved-attribute] Object of type
propertyhas no attributetolist - static_frame/test/unit/test_frame.py:14678:30: error[unresolved-attribute] Object of type
propertyhas no attributeshape - static_frame/test/unit/test_frame.py:14680:18: error[unresolved-attribute] Object of type
propertyhas no attributeiloc - Found 1921 diagnostics
- Found 1913 diagnostics
pandas (https://github.com/pandas-dev/pandas)
- pandas/core/dtypes/cast.py:406:8: error[unresolved-attribute] Object of type
propertyhas no attributekind - pandas/core/dtypes/cast.py:408:10: error[unresolved-attribute] Object of type
propertyhas no attributekind - pandas/core/dtypes/cast.py:410:10: error[unresolved-attribute] Object of type
propertyhas no attributekind - Found 3360 diagnostics
- Found 3357 diagnostics
core (https://github.com/home-assistant/core)
- homeassistant/components/sonos/helpers.py:86:45: warning[possibly-missing-attribute] Attribute
uidmay be missing on object of typeUnknown | property - Found 14485 diagnostics
- Found 14484 diagnostics
scipy (https://github.com/scipy/scipy)
- scipy/sparse/_data.py:149:9: error[invalid-assignment] Object of type
Unknown | propertyis not assignable to attribute__name__of typestr - scipy/sparse/_data.py:153:27: error[invalid-argument-type] Argument to function
setattris incorrect: Expectedstr, foundUnknown | property - Found 9195 diagnostics
- Found 9193 diagnostics