[ty] Use field type context for TypedDict constructor values by charliermarsh · Pull Request #24422 · astral-sh/ruff (original) (raw)
ecosystem-analyzer results
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
| invalid-argument-type | 1 | 6 | 14 |
| invalid-key | 7 | 0 | 0 |
| Total | 8 | 6 | 14 |
Raw diff (28 changes)
altair (https://github.com/vega/altair)
- tests/vegalite/v6/test_theme.py:217:17 error[invalid-key] Unknown key "guide-label" for TypedDict
StyleConfigIndexKwds - tests/vegalite/v6/test_theme.py:222:17 error[invalid-key] Unknown key "guide-title" for TypedDict
StyleConfigIndexKwds - tests/vegalite/v6/test_theme.py:247:17 error[invalid-key] Unknown key "guide-label" for TypedDict
StyleConfigIndexKwds - tests/vegalite/v6/test_theme.py:247:17 error[invalid-key] Unknown key "guide-label" for TypedDict
StyleConfigIndexKwds - tests/vegalite/v6/test_theme.py:248:17 error[invalid-key] Unknown key "guide-title" for TypedDict
StyleConfigIndexKwds - tests/vegalite/v6/test_theme.py:248:17 error[invalid-key] Unknown key "guide-title" for TypedDict
StyleConfigIndexKwds - tests/vegalite/v6/test_theme.py:992:13 error[invalid-key] Unknown key "path" for TypedDict
ConfigKwds - tests/vegalite/v6/test_theme.py:1009:27 error[invalid-argument-type] Invalid argument to key "stroke" with declared type
LiteralString | LinearGradientKwds | RadialGradientKwds | Noneon TypedDictBarConfigKwds: value of typeLiteral[False]
core (https://github.com/home-assistant/core)
- homeassistant/components/adguard/entity.py:63:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, Unknown, Unknown]]
- homeassistant/components/adguard/entity.py:63:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, Unknown, Unknown]]
- homeassistant/components/azure_devops/entity.py:23:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str, Unknown]]
- homeassistant/components/azure_devops/entity.py:23:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, str, Unknown]]
- homeassistant/components/bond/entity.py:83:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown | str | None, Unknown | str]]
- homeassistant/components/bond/entity.py:83:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown | str | None, Unknown | str]]
- homeassistant/components/hvv_departures/binary_sensor.py:144:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, Unknown, Unknown]]
- homeassistant/components/hvv_departures/binary_sensor.py:144:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, Unknown, Unknown]]
- homeassistant/components/hvv_departures/sensor.py:79:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, Unknown, Unknown]]
- homeassistant/components/hvv_departures/sensor.py:79:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, Unknown, Unknown]]
- homeassistant/components/izone/climate.py:479:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str, Unknown]]
- homeassistant/components/izone/climate.py:479:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, str, Unknown]]
- homeassistant/components/met_eireann/weather.py:99:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str]]
- homeassistant/components/met_eireann/weather.py:99:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str]]
- homeassistant/components/toon/entity.py:43:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:43:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:63:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:63:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:83:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:83:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:103:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:103:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:124:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:124:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:144:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, str]]
- homeassistant/components/toon/entity.py:144:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, str]]
- homeassistant/components/vilfo/sensor.py:75:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, Unknown, Unknown]]
- homeassistant/components/vilfo/sensor.py:75:25 error[invalid-argument-type] Invalid argument to key "identifiers" with declared type
set[tuple[str, str]]on TypedDictDeviceInfo: value of typeset[tuple[str, str] | tuple[str, Unknown, Unknown]]
zulip (https://github.com/zulip/zulip)
- zerver/webhooks/fixtureless_integrations.py:98:13 error[invalid-argument-type] Invalid argument to key "content" with declared type
str | list[MessageThread]on TypedDictScreenshotContent: value of typelist[dict[str, str]] - zerver/webhooks/fixtureless_integrations.py:128:13 error[invalid-argument-type] Invalid argument to key "content" with declared type
str | list[MessageThread]on TypedDictScreenshotContent: value of typelist[dict[str, str]] - zerver/webhooks/fixtureless_integrations.py:155:13 error[invalid-argument-type] Invalid argument to key "content" with declared type
str | list[MessageThread]on TypedDictScreenshotContent: value of typelist[dict[str, str]] - zerver/webhooks/fixtureless_integrations.py:166:13 error[invalid-argument-type] Invalid argument to key "content" with declared type
str | list[MessageThread]on TypedDictScreenshotContent: value of typelist[dict[str, str]] - zerver/webhooks/fixtureless_integrations.py:189:13 error[invalid-argument-type] Invalid argument to key "content" with declared type
str | list[MessageThread]on TypedDictScreenshotContent: value of typelist[dict[str, str]] - zerver/webhooks/fixtureless_integrations.py:263:13 error[invalid-argument-type] Invalid argument to key "content" with declared type
str | list[MessageThread]on TypedDictScreenshotContent: value of typelist[dict[str, str]]