[ty] fix goto definition for generic classes by felixscherz · Pull Request #24714 · astral-sh/ruff (original) (raw)
ecosystem-analyzer results
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
| invalid-argument-type | 9 | 0 | 0 |
| invalid-assignment | 9 | 0 | 0 |
| unused-type-ignore-comment | 0 | 8 | 0 |
| invalid-return-type | 4 | 0 | 0 |
| no-matching-overload | 4 | 0 | 0 |
| unknown-argument | 2 | 0 | 0 |
| unresolved-attribute | 1 | 1 | 0 |
| call-non-callable | 1 | 0 | 0 |
| not-subscriptable | 1 | 0 | 0 |
| Total | 31 | 9 | 0 |
Raw diff (40 changes)
anyio (https://github.com/agronholm/anyio)
- src/anyio/_core/_tempfile.py:423:22 error[no-matching-overload] No overload of bound method
AsyncFile.writematches arguments - src/anyio/_core/_tempfile.py:451:22 error[no-matching-overload] No overload of bound method
AsyncFile.writelinesmatches arguments
beartype (https://github.com/beartype/beartype)
- beartype/typing/_typingpep544.py:520:31 error[unresolved-attribute] Object of type
<super: <class 'Protocol'>, type[Self@__class_getitem__]>has no attribute__class_getitem__
- beartype/typing/_typingpep544.py:568:25 error[call-non-callable] Object of type
objectis not callable - beartype/typing/_typingpep544.py:585:9 error[invalid-assignment] Object of type
type[Self@__class_getitem__]is not assignable to attribute__origin__on typeUnknown | type[Self@__class_getitem__]
bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/core/property/container.py:136:37 error[invalid-argument-type] Argument to
Seq.__init__is incorrect: Expectedlist[Never] | UndefinedType | IntrinsicType, foundlist[list[Never]] | UndefinedType | IntrinsicType
core (https://github.com/home-assistant/core)
- homeassistant/components/ring/binary_sensor.py:162:9 error[invalid-assignment] Cannot assign to a subscript on an object of type
Mapping[str, Any] - homeassistant/components/ring/binary_sensor.py:166:9 error[invalid-assignment] Cannot assign to a subscript on an object of type
Mapping[str, Any]
discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/context.py:1120:16 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - discord/ext/commands/hybrid.py:349:52 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - discord/ui/select.py:494:32 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - discord/ui/select.py:676:32 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - discord/ui/select.py:776:32 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - discord/ui/select.py:888:32 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - discord/ui/select.py:1009:32 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/funcs.py:102:41 warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective
ibis (https://github.com/ibis-project/ibis)
- ibis/expr/operations/generic.py:148:26 error[unknown-argument] Argument
valuedoes not match any known parameter - ibis/expr/operations/generic.py:148:39 error[unknown-argument] Argument
dtypedoes not match any known parameter
prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-ray/prefect_ray/task_runners.py:314:28 error[invalid-argument-type] Argument to bound method
TaskRunner.mapis incorrect: ExpectedTask[P@map, R@RayTaskRunner | CoroutineType[Any, Any, R@RayTaskRunner]], foundTask[P@map, R@RayTaskRunner] - src/prefect/input/run_input.py:448:16 error[unresolved-attribute] Attribute
valueis not defined onCoroutine[Any, Any, Self@load]in unionSelf@load | Coroutine[Any, Any, Self@load]
werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/datastructures/mixins.py:260:14 error[no-matching-overload] No overload of bound method
MutableMapping.setdefaultmatches arguments - src/werkzeug/datastructures/mixins.py:309:13 error[invalid-argument-type] Argument to bound method
MutableMapping.updateis incorrect: ExpectedSupportsGetItem[str, V@UpdateDictMixin], foundSelf@update - src/werkzeug/datastructures/structures.py:238:20 error[invalid-argument-type] Argument to function
lenis incorrect: ExpectedSized, foundV@MultiDict - src/werkzeug/datastructures/structures.py:239:24 error[not-subscriptable] Cannot subscript object of type
V@MultiDictwith no__getitem__method - src/werkzeug/datastructures/structures.py:248:34 error[invalid-argument-type] Argument to bound method
dict.__setitem__is incorrect: ExpectedV@MultiDict, foundlist[V@MultiDict] - src/werkzeug/datastructures/structures.py:258:9 error[no-matching-overload] No overload of bound method
MutableMapping.setdefaultmatches arguments - src/werkzeug/datastructures/structures.py:281:27 error[invalid-assignment] Object of type
V@MultiDictis not assignable tolist[V@MultiDict] - src/werkzeug/datastructures/structures.py:310:34 error[invalid-argument-type] Argument to bound method
dict.__setitem__is incorrect: ExpectedV@MultiDict, foundlist[V@MultiDict] - src/werkzeug/datastructures/structures.py:349:38 error[invalid-argument-type] Argument to bound method
dict.__setitem__is incorrect: ExpectedV@MultiDict, foundlist[Unknown] - src/werkzeug/datastructures/structures.py:351:16 error[invalid-return-type] Return type does not match returned value: expected
list[V@MultiDict], foundV@MultiDict - src/werkzeug/datastructures/structures.py:362:18 error[invalid-assignment] Object of type
V@MultiDictis not assignable tolist[V@MultiDict] - src/werkzeug/datastructures/structures.py:374:18 error[invalid-assignment] Object of type
V@MultiDictis not assignable tolist[V@MultiDict] - src/werkzeug/datastructures/structures.py:381:13 error[invalid-assignment] Object of type
V@MultiDictis not assignable tolist[V@MultiDict] - src/werkzeug/datastructures/structures.py:392:16 error[invalid-return-type] Return type does not match returned value: expected
Iterable[list[V@MultiDict]], founddict_values[K@MultiDict, V@MultiDict] - src/werkzeug/datastructures/structures.py:498:19 error[invalid-assignment] Object of type
V@MultiDictis not assignable tolist[V@MultiDict] - src/werkzeug/datastructures/structures.py:515:20 error[invalid-assignment] Object of type
tuple[K@MultiDict, V@MultiDict]is not assignable totuple[K@MultiDict, list[V@MultiDict]] - src/werkzeug/datastructures/structures.py:532:16 error[invalid-return-type] Return type does not match returned value: expected
list[V@MultiDict], foundV@MultiDict | list[Unknown] - src/werkzeug/datastructures/structures.py:537:20 error[invalid-return-type] Return type does not match returned value: expected
tuple[K@MultiDict, list[V@MultiDict]], foundtuple[K@MultiDict, V@MultiDict]
xarray (https://github.com/pydata/xarray)
- xarray/core/resample.py:59:13 error[invalid-argument-type] Argument to bound method
DataArray.renameis incorrect: Argument typeT_Xarray@Resampledoes not satisfy upper boundDataArrayof type variableSelf - xarray/core/resample.py:59:13 error[invalid-argument-type] Argument to bound method
Dataset.renameis incorrect: Argument typeT_Xarray@Resampledoes not satisfy upper boundDatasetof type variableSelf