[ty] Include the specialization of a generic TypedDict as part of its display by AlexWaygood · Pull Request #22174 · astral-sh/ruff (original) (raw)
mypy_primer results
Changes were detected when running on open source projects
prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:94:28: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elementsis not assignable todict[str, Any]
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:94:28: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any]is not assignable todict[str, Any]
- src/integrations/prefect-dbt/prefect_dbt/core/settings.py:99:28: error[invalid-assignment] Object of type
T@resolve_variables | str | int | ... 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
T@resolve_variables | dict[str, Any]is not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elementsis not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:86:21: error[invalid-assignment] Object of type
T@resolve_block_document_references | dict[str, Any]is not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:87:21: error[invalid-assignment] Object of type
T@resolve_variables | str | int | ... omitted 4 union elementsis not assignable todict[str, Any]
- src/prefect/cli/deploy/_core.py:87:21: error[invalid-assignment] Object of type
T@resolve_variablesis not assignable todict[str, Any]
- src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements
- src/prefect/deployments/steps/core.py:137:38: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any]
- src/prefect/utilities/templating.py:320:13: error[invalid-assignment] Invalid subscript assignment with key of type
objectand value of typeT@resolve_block_document_references | dict[str, Any] | str | ... 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 typeT@resolve_block_document_references | 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[T@resolve_block_document_references | dict[str, Any] | str | ... omitted 5 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[T@resolve_block_document_references | dict[str, Any] | Unknown]
- src/prefect/utilities/templating.py:437:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, founddict[object, T@resolve_variables | str | int | ... omitted 5 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, T@resolve_variables | Unknown]
- src/prefect/utilities/templating.py:442:16: error[invalid-return-type] Return type does not match returned value: expected
T@resolve_variables, foundlist[T@resolve_variables | str | int | ... omitted 5 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[T@resolve_variables | Unknown]
- src/prefect/workers/base.py:228:13: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements
- src/prefect/workers/base.py:228:13: error[invalid-argument-type] Argument is incorrect: Expected
T@resolve_variables, foundT@resolve_block_document_references | dict[str, Any]
- src/prefect/workers/base.py:230:20: error[invalid-argument-type] Argument expression after ** must be a mapping type: Found
T@resolve_variables | str | int | ... omitted 4 union elements
- src/prefect/workers/base.py:230:20: error[invalid-argument-type] Argument expression after ** must be a mapping type: Found
T@resolve_variables
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/build/wheel.py:98:20: error[no-matching-overload] No overload of bound method
__init__matches arguments - Found 43 diagnostics
- Found 42 diagnostics
jax (https://github.com/google/jax)
- jax/_src/tree_util.py:302:31: error[invalid-argument-type] Argument to bound method
register_nodeis incorrect: Expected(Hashable, Iterable[object], /) -> T@register_pytree_node, found(_AuxData@register_pytree_node, _Children@register_pytree_node, /) -> T@register_pytree_node - jax/_src/tree_util.py:305:31: error[invalid-argument-type] Argument to bound method
register_nodeis incorrect: Expected(Hashable, Iterable[object], /) -> T@register_pytree_node, found(_AuxData@register_pytree_node, _Children@register_pytree_node, /) -> T@register_pytree_node - jax/_src/tree_util.py:308:31: error[invalid-argument-type] Argument to bound method
register_nodeis incorrect: Expected(Hashable, Iterable[object], /) -> T@register_pytree_node, found(_AuxData@register_pytree_node, _Children@register_pytree_node, /) -> T@register_pytree_node - Found 2806 diagnostics
- Found 2803 diagnostics
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/linear_model/_glm/tests/test_glm.py:51:9: error[invalid-argument-type] Argument to function
rootis incorrect: Expected_RootOptionsHybr | _RootOptionsLM | _RootOptionsJacBase | ... omitted 6 union elements, founddict[Unknown | str, Unknown]
- sklearn/linear_model/_glm/tests/test_glm.py:51:9: error[invalid-argument-type] Argument to function
rootis incorrect: Expected_RootOptionsHybr | _RootOptionsLM | _RootOptionsJacBase[_JacOptionsBroyden] | ... omitted 6 union elements, founddict[Unknown | str, Unknown]
bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/_specs.pyi:72:49: error[non-subscriptable] Cannot subscript non-generic type:
<types.UnionType special-form 'ValueDict | FieldDict | ExprDict'>is already specialized
- src/bokeh/_specs.pyi:72:49: error[non-subscriptable] Cannot subscript non-generic type:
<types.UnionType special-form 'ValueDict[ValueType, UnitsType] | FieldDict[ValueType, UnitsType] | ExprDict[ValueType, UnitsType]'>is already specialized
- src/bokeh/models/annotations/geometry.py:250:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/geometry.py:250:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/html/labels.py:78:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY | ... omitted 4 union elements, foundLiteral[0]
- src/bokeh/models/annotations/html/labels.py:78:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY[Property[Unknown]] | ... omitted 4 union elements, foundLiteral[0]
- src/bokeh/models/annotations/html/labels.py:85:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/html/labels.py:85:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/labels.py:87:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY | ... omitted 4 union elements, foundLiteral[0]
- src/bokeh/models/annotations/labels.py:87:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY[Property[Unknown]] | ... omitted 4 union elements, foundLiteral[0]
- src/bokeh/models/annotations/labels.py:94:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/labels.py:94:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/legends.py:510:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY | ... omitted 4 union elements, foundLiteral[10]
- src/bokeh/models/annotations/legends.py:510:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY[Property[Unknown]] | ... omitted 4 union elements, foundLiteral[10]
- src/bokeh/models/annotations/legends.py:516:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/annotations/legends.py:516:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/glyphs.py:226:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/glyphs.py:226:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/glyphs.py:1391:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/glyphs.py:1391:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/glyphs.py:1656:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY | ... omitted 4 union elements, foundLiteral[0]
- src/bokeh/models/glyphs.py:1656:23: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown]] | XY[Property[Unknown]] | ... omitted 4 union elements, foundLiteral[0]
- src/bokeh/models/glyphs.py:1663:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners | UndefinedType | IntrinsicType, foundLiteral[0]
- src/bokeh/models/glyphs.py:1663:34: error[invalid-argument-type] Argument to bound method
__init__is incorrect: ExpectedProperty[Unknown] | tuple[Property[Unknown], Property[Unknown], Property[Unknown], Property[Unknown]] | Corners[Property[Unknown]] | UndefinedType | IntrinsicType, foundLiteral[0]
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- pandas-stubs/_typing.pyi:1232:16: warning[unused-ignore-comment] Unused blanket
type: ignoredirective - Found 5107 diagnostics
- Found 5106 diagnostics
No memory usage changes detected ✅