Ecosystem report

Old: main (merge base) c35bf8f4 New: 21862/merge 863863f4
Lint Rule Removed Added Changed
Total 153 12 94
invalid-argument-type 128 7 57
unresolved-attribute 21 0 1
possibly-missing-attribute 0 0 14
not-iterable 0 0 10
type-assertion-failure 4 1 4
invalid-assignment 0 2 3
invalid-return-type 0 1 1
unsupported-operator 0 0 2
invalid-context-manager 0 0 1
non-subscriptable 0 0 1
unused-ignore-comment 0 1 0
Project Removed Added Changed
Total 153 12 94
bokeh 31 5 82
core 96 0 1
psycopg 19 0 1
scipy-stubs 4 1 0
meson 1 3 0
pandas-stubs 0 0 4
optuna 0 0 2
prefect 0 0 2
pytest 2 0 0
scikit-build-core 0 2 0
werkzeug 0 1 1
paasta 0 0 1

bokeh (https://github.com/bokeh/bokeh)

src/bokeh/document/config.py

[error] invalid-argument-type - :69:30 - Argument to bound method `__init__` is incorrect: Expected `type[Property[Notifications | InstanceDefault[Notifications]]] | Property[Notifications | InstanceDefault[Notifications]]`, found `Instance[Notifications]`

src/bokeh/models/annotations/arrows.py

[error] invalid-argument-type - :187:20 - Argument to bound method `__init__` is incorrect: Expected `type[Property[ArrowHead | InstanceDefault[OpenHead]]] | Property[ArrowHead | InstanceDefault[OpenHead]]`, found `Instance[ArrowHead]`

src/bokeh/models/annotations/annotation.py

[error] invalid-argument-type - :67 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[ColumnDataSource]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[DataSource | InstanceDefault[ColumnDataSource]]`
[error] invalid-argument-type - :67:23 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[ColumnDataSource]] | (() -> type[InstanceDefault[ColumnDataSource]]) | str`, found `<class 'DataSource'>`

src/bokeh/models/annotations/dimensional.py

[error] unsupported-operator - :104 -
Old: Operator `in` is not supported between objects of type `str` and `Unknown | Required[Unknown]`
New: Operator `in` is not supported between objects of type `str` and `Unknown | Required[Any]`

src/bokeh/models/annotations/geometry.py

[error] invalid-argument-type - :560:27 - Argument to bound method `__init__` is incorrect: Expected `type[Property[ArrowHead | InstanceDefault[TeeHead]]] | Property[ArrowHead | InstanceDefault[TeeHead]]`, found `Instance[ArrowHead]`
[error] invalid-argument-type - :568:27 - Argument to bound method `__init__` is incorrect: Expected `type[Property[ArrowHead | InstanceDefault[TeeHead]]] | Property[ArrowHead | InstanceDefault[TeeHead]]`, found `Instance[ArrowHead]`
[error] invalid-argument-type - :298 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[() -> Unknown]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[BoxInteractionHandles | (() -> Unknown)]`

src/bokeh/models/annotations/legends.py

[error] invalid-argument-type - :170 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[NoOverlap]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[LabelingPolicy | InstanceDefault[NoOverlap]]`
[error] invalid-argument-type - :170:35 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[NoOverlap]] | (() -> type[InstanceDefault[NoOverlap]]) | str`, found `<class 'LabelingPolicy'>`
[error] not-iterable - :352 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[GlyphRenderer[Unknown]]` may not be iterable
[error] invalid-argument-type - :358 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | List[Unknown]`
New: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | List[GlyphRenderer[Unknown]]`
[error] non-subscriptable - :360 -
Old: Cannot subscript object of type `List[Unknown]` with no `__getitem__` method
New: Cannot subscript object of type `List[GlyphRenderer[Unknown]]` with no `__getitem__` method
[error] invalid-argument-type - :592 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[MetricLength]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Dimensional | InstanceDefault[MetricLength]]`
[error] invalid-argument-type - :592:28 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[MetricLength]] | (() -> type[InstanceDefault[MetricLength]]) | str`, found `<class 'Dimensional'>`
[error] invalid-argument-type - :722 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[FixedTicker]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Ticker | InstanceDefault[FixedTicker]]`
[error] invalid-argument-type - :722:23 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[FixedTicker]] | (() -> type[InstanceDefault[FixedTicker]]) | str`, found `<class 'Ticker'>`
[error] invalid-argument-type - :823 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[NoOverlap]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[LabelingPolicy | InstanceDefault[NoOverlap]]`
[error] invalid-argument-type - :823:35 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[NoOverlap]] | (() -> type[InstanceDefault[NoOverlap]]) | str`, found `<class 'LabelingPolicy'>`

src/bokeh/models/axes.py

[error] invalid-argument-type - :201 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[AllLabels]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[LabelingPolicy | InstanceDefault[AllLabels]]`
[error] invalid-argument-type - :201:35 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[AllLabels]] | (() -> type[InstanceDefault[AllLabels]]) | str`, found `<class 'LabelingPolicy'>`

src/bokeh/models/callbacks.py

[error] invalid-assignment - :212 -
Old: Object of type `Required[Unknown]` is not assignable to `HasProps`
New: Object of type `Required[HasProps]` is not assignable to `HasProps`

src/bokeh/models/coordinates.py

[error] invalid-argument-type - :48 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[DataRange1d]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Range | InstanceDefault[DataRange1d]]`
[error] invalid-argument-type - :48:25 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[DataRange1d]] | (() -> type[InstanceDefault[DataRange1d]]) | str`, found `<class 'Range'>`
[error] invalid-argument-type - :52 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[DataRange1d]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Range | InstanceDefault[DataRange1d]]`
[error] invalid-argument-type - :52:25 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[DataRange1d]] | (() -> type[InstanceDefault[DataRange1d]]) | str`, found `<class 'Range'>`
[error] invalid-argument-type - :56 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[LinearScale]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Scale | InstanceDefault[LinearScale]]`
[error] invalid-argument-type - :56:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[LinearScale]] | (() -> type[InstanceDefault[LinearScale]]) | str`, found `<class 'Scale'>`
[error] invalid-argument-type - :61 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[LinearScale]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Scale | InstanceDefault[LinearScale]]`
[error] invalid-argument-type - :61:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[LinearScale]] | (() -> type[InstanceDefault[LinearScale]]) | str`, found `<class 'Scale'>`

src/bokeh/models/dom.py

[warning] possibly-missing-attribute - :182 -
Old: Attribute `lookup` may be missing on object of type `Unknown | Required[Unknown]`
New: Attribute `lookup` may be missing on object of type `Unknown | Required[HasProps]`

src/bokeh/models/glyphs.py

[error] invalid-argument-type - :842 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[LinearColorMapper]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[ColorMapper | InstanceDefault[LinearColorMapper]]`
[error] invalid-argument-type - :842:29 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[LinearColorMapper]] | (() -> type[InstanceDefault[LinearColorMapper]]) | str`, found `<class 'ColorMapper'>`

src/bokeh/models/layouts.py

[error] not-iterable - :409 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[Any]` may not be iterable
[error] invalid-argument-type - :481 -
Old: Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | List[Unknown]`
New: Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | List[UIElement]`
[error] not-iterable - :487 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[UIElement]` may not be iterable
[error] invalid-argument-type - :497 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | List[Unknown]`
New: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | List[UIElement]`
[error] invalid-argument-type - :497 -
Old: Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | List[Unknown]`
New: Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | List[UIElement]`
[error] not-iterable - :521 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[UIElement]` may not be iterable
[error] not-iterable - :523 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[UIElement]` may not be iterable
[error] not-iterable - :537 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[UIElement]` may not be iterable
[error] not-iterable - :539 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[UIElement]` may not be iterable

src/bokeh/models/plots.py

[error] unsupported-operator - :238 -
Old: Operator `+` is unsupported between objects of type `Unknown | List[Unknown]` and `Unknown | List[Unknown]`
New: Operator `+` is unsupported between objects of type `Unknown | List[Any]` and `Unknown | List[Any]`
[error] not-iterable - :251 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[Any]` may not be iterable
[warning] possibly-missing-attribute - :389 -
Old: Attribute `append` may be missing on object of type `Unknown | List[Unknown]`
New: Attribute `append` may be missing on object of type `Unknown | List[Renderer]`
[warning] possibly-missing-attribute - :442 -
Old: Attribute `append` may be missing on object of type `Unknown | List[Unknown]`
New: Attribute `append` may be missing on object of type `Unknown | List[Renderer]`
[error] invalid-argument-type - :501 -
Old: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | List[Unknown]`
New: Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | List[Renderer]`
[error] not-iterable - :501 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[Any]` may not be iterable
[error] invalid-argument-type - :523 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[DataRange1d]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Range | InstanceDefault[DataRange1d]]`
[error] invalid-argument-type - :523:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[DataRange1d]] | (() -> type[InstanceDefault[DataRange1d]]) | str`, found `<class 'Range'>`
[error] invalid-argument-type - :527 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[DataRange1d]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Range | InstanceDefault[DataRange1d]]`
[error] invalid-argument-type - :527:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[DataRange1d]] | (() -> type[InstanceDefault[DataRange1d]]) | str`, found `<class 'Range'>`
[error] invalid-argument-type - :531 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[LinearScale]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Scale | InstanceDefault[LinearScale]]`
[error] invalid-argument-type - :531:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[LinearScale]] | (() -> type[InstanceDefault[LinearScale]]) | str`, found `<class 'Scale'>`
[error] invalid-argument-type - :536 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[LinearScale]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Scale | InstanceDefault[LinearScale]]`
[error] invalid-argument-type - :536:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[LinearScale]] | (() -> type[InstanceDefault[LinearScale]]) | str`, found `<class 'Scale'>`
[error] invalid-argument-type - :606 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[Toolbar]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Toolbar | InstanceDefault[Toolbar]]`
[error] invalid-argument-type - :606:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[Toolbar]] | (() -> type[InstanceDefault[Toolbar]]) | str`, found `<class 'Toolbar'>`
[error] invalid-argument-type - :929 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[Toolbar]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Toolbar | InstanceDefault[Toolbar]]`
[error] invalid-argument-type - :929:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[Toolbar]] | (() -> type[InstanceDefault[Toolbar]]) | str`, found `<class 'Toolbar'>`
[error] not-iterable - :948 -
Old: Object of type `Unknown | List[Unknown]` may not be iterable
New: Object of type `Unknown | List[Any]` may not be iterable

src/bokeh/models/renderers/contour_renderer.py

[warning] possibly-missing-attribute - :82 -
Old: Attribute `data_source` may be missing on object of type `Unknown | Instance[Unknown]`
New: Attribute `data_source` may be missing on object of type `Unknown | Instance[GlyphRenderer[Unknown]]`
[warning] possibly-missing-attribute - :86 -
Old: Attribute `data_source` may be missing on object of type `Unknown | Instance[Unknown]`
New: Attribute `data_source` may be missing on object of type `Unknown | Instance[GlyphRenderer[Unknown]]`
[warning] possibly-missing-attribute - :88 -
Old: Attribute `data_source` may be missing on object of type `Unknown | Instance[Unknown]`
New: Attribute `data_source` may be missing on object of type `Unknown | Instance[GlyphRenderer[Unknown]]`
[warning] possibly-missing-attribute - :94 -
Old: Attribute `data_source` may be missing on object of type `Unknown | Instance[Unknown]`
New: Attribute `data_source` may be missing on object of type `Unknown | Instance[GlyphRenderer[Unknown]]`
[warning] possibly-missing-attribute - :98 -
Old: Attribute `data_source` may be missing on object of type `Unknown | Instance[Unknown]`
New: Attribute `data_source` may be missing on object of type `Unknown | Instance[GlyphRenderer[Unknown]]`
[warning] possibly-missing-attribute - :100 -
Old: Attribute `data_source` may be missing on object of type `Unknown | Instance[Unknown]`
New: Attribute `data_source` may be missing on object of type `Unknown | Instance[GlyphRenderer[Unknown]]`
[error] invalid-argument-type - :112 -
Old: Argument is incorrect: Expected `GlyphRenderer[Glyph]`, found `Unknown | Instance[Unknown]`
New: Argument is incorrect: Expected `GlyphRenderer[Glyph]`, found `Unknown | Instance[GlyphRenderer[Unknown]]`
[error] invalid-argument-type - :113 -
Old: Argument is incorrect: Expected `GlyphRenderer[Glyph]`, found `Unknown | Instance[Unknown]`
New: Argument is incorrect: Expected `GlyphRenderer[Glyph]`, found `Unknown | Instance[GlyphRenderer[Unknown]]`

src/bokeh/models/renderers/glyph_renderer.py

[warning] possibly-missing-attribute - :88 -
Old: Attribute `properties_with_values` may be missing on object of type `Unknown | Required[Unknown]`
New: Attribute `properties_with_values` may be missing on object of type `Unknown | Required[Glyph]`
[warning] possibly-missing-attribute - :89 -
Old: Attribute `dataspecs` may be missing on object of type `Unknown | Required[Unknown]`
New: Attribute `dataspecs` may be missing on object of type `Unknown | Required[Glyph]`
[error] invalid-argument-type - :107 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[CDSView]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[CDSView | InstanceDefault[CDSView]]`
[error] invalid-argument-type - :107:21 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[CDSView]] | (() -> type[InstanceDefault[CDSView]]) | str`, found `<class 'CDSView'>`
[warning] possibly-missing-attribute - :195 -
Old: Attribute `fill_color` may be missing on object of type `(Unknown & FillGlyph) | (Required[Unknown] & FillGlyph)`
New: Attribute `fill_color` may be missing on object of type `(Unknown & FillGlyph) | (Required[Glyph] & FillGlyph)`
[warning] possibly-missing-attribute - :201 -
Old: Attribute `line_color` may be missing on object of type `(Unknown & LineGlyph & ~FillGlyph) | (Required[Unknown] & LineGlyph & ~FillGlyph)`
New: Attribute `line_color` may be missing on object of type `(Unknown & LineGlyph & ~FillGlyph) | (Required[Glyph] & LineGlyph & ~FillGlyph)`
[warning] possibly-missing-attribute - :207 -
Old: Attribute `text_color` may be missing on object of type `(Unknown & TextGlyph & ~FillGlyph & ~LineGlyph) | (Required[Unknown] & TextGlyph & ~FillGlyph & ~LineGlyph)`
New: Attribute `text_color` may be missing on object of type `(Unknown & TextGlyph & ~FillGlyph & ~LineGlyph) | (Required[Glyph] & TextGlyph & ~FillGlyph & ~LineGlyph)`

src/bokeh/models/renderers/graph_renderer.py

[error] invalid-argument-type - :84 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[() -> Unknown]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[GlyphRenderer[Unknown] | (() -> Unknown)]`
[error] invalid-argument-type - :89 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[() -> Unknown]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[GlyphRenderer[Unknown] | (() -> Unknown)]`
[error] invalid-argument-type - :94 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[NodesOnly]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[GraphHitTestPolicy | InstanceDefault[NodesOnly]]`
[error] invalid-argument-type - :94:33 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[NodesOnly]] | (() -> type[InstanceDefault[NodesOnly]]) | str`, found `<class 'GraphHitTestPolicy'>`
[error] invalid-argument-type - :99 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[NodesOnly]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[GraphHitTestPolicy | InstanceDefault[NodesOnly]]`
[error] invalid-argument-type - :99:34 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[NodesOnly]] | (() -> type[InstanceDefault[NodesOnly]]) | str`, found `<class 'GraphHitTestPolicy'>`

src/bokeh/models/renderers/tile_renderer.py

[error] invalid-argument-type - :53 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[WMTSTileSource]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[TileSource | InstanceDefault[WMTSTileSource]]`
[error] invalid-argument-type - :53:28 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[WMTSTileSource]] | (() -> type[InstanceDefault[WMTSTileSource]]) | str`, found `<class 'TileSource'>`

src/bokeh/models/sources.py

[error] invalid-argument-type - :97:25 - Argument to bound method `__init__` is incorrect: Expected `type[Property[Selection | InstanceDefault[Selection]]] | Property[Selection | InstanceDefault[Selection]]`, found `Instance[Selection]`
[error] invalid-argument-type - :123 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[UnionRenderers]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[SelectionPolicy | InstanceDefault[UnionRenderers]]`
[error] invalid-argument-type - :123:33 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[UnionRenderers]] | (() -> type[InstanceDefault[UnionRenderers]]) | str`, found `<class 'SelectionPolicy'>`
[error] invalid-argument-type - :788 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[AllIndices]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[Filter | InstanceDefault[AllIndices]]`
[error] invalid-argument-type - :788:23 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[AllIndices]] | (() -> type[InstanceDefault[AllIndices]]) | str`, found `<class 'Filter'>`

src/bokeh/models/tools.py

[error] invalid-argument-type - :573 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[() -> Unknown]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[BoxAnnotation | (() -> Unknown)]`
[error] invalid-argument-type - :1138 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[BoxAnnotation]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[BoxAnnotation | InstanceDefault[BoxAnnotation]]`
[error] invalid-argument-type - :1138:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[BoxAnnotation]] | (() -> type[InstanceDefault[BoxAnnotation]]) | str`, found `<class 'BoxAnnotation'>`
[error] invalid-argument-type - :1257 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[BoxAnnotation]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[BoxAnnotation | InstanceDefault[BoxAnnotation]]`
[error] invalid-argument-type - :1257:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[BoxAnnotation]] | (() -> type[InstanceDefault[BoxAnnotation]]) | str`, found `<class 'BoxAnnotation'>`
[error] invalid-argument-type - :1308 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[PolyAnnotation]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[PolyAnnotation | InstanceDefault[PolyAnnotation]]`
[error] invalid-argument-type - :1308:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[PolyAnnotation]] | (() -> type[InstanceDefault[PolyAnnotation]]) | str`, found `<class 'PolyAnnotation'>`
[error] invalid-argument-type - :1342 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[PolyAnnotation]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[PolyAnnotation | InstanceDefault[PolyAnnotation]]`
[error] invalid-argument-type - :1342:24 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[PolyAnnotation]] | (() -> type[InstanceDefault[PolyAnnotation]]) | str`, found `<class 'PolyAnnotation'>`

src/bokeh/models/widgets/tables.py

[error] invalid-argument-type - :713 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[StringFormatter]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[CellFormatter | InstanceDefault[StringFormatter]]`
[error] invalid-argument-type - :713:26 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[StringFormatter]] | (() -> type[InstanceDefault[StringFormatter]]) | str`, found `<class 'CellFormatter'>`
[error] invalid-argument-type - :718 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[StringEditor]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[CellEditor | InstanceDefault[StringEditor]]`
[error] invalid-argument-type - :718:23 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[StringEditor]] | (() -> type[InstanceDefault[StringEditor]]) | str`, found `<class 'CellEditor'>`
[error] invalid-argument-type - :749 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[ColumnDataSource]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[DataSource | InstanceDefault[ColumnDataSource]]`
[error] invalid-argument-type - :749:23 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[ColumnDataSource]] | (() -> type[InstanceDefault[ColumnDataSource]]) | str`, found `<class 'DataSource'>`
[error] invalid-argument-type - :753 -
Old: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[InstanceDefault[CDSView]]`
New: Argument to bound method `__init__` is incorrect: Expected `Instance[S@Instance]`, found `Instance[CDSView | InstanceDefault[CDSView]]`
[error] invalid-argument-type - :753:21 - Argument to bound method `__init__` is incorrect: Expected `type[InstanceDefault[CDSView]] | (() -> type[InstanceDefault[CDSView]]) | str`, found `<class 'CDSView'>`

src/bokeh/plotting/_figure.py

[error] invalid-argument-type - :198 -
Old: Argument to function `get_scale` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Unknown | None]`
New: Argument to function `get_scale` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Any | None]`
[error] invalid-argument-type - :199 -
Old: Argument to function `get_scale` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Unknown | None]`
New: Argument to function `get_scale` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Any | None]`
[error] invalid-argument-type - :201 -
Old: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Unknown | None]`
New: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Any | None]`
[error] invalid-argument-type - :201 -
Old: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["above", "below", "left", "right"] | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["above", "below", "left", "right"] | None`, found `Unknown | Nullable[Any | Literal["below"]]`
[error] invalid-argument-type - :202 -
Old: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Unknown | None]`
New: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["linear", "log", "datetime", "timedelta", "mercator", "auto"] | None`, found `Unknown | ParameterizedProperty[Any | None]`
[error] invalid-argument-type - :202 -
Old: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["above", "below", "left", "right"] | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_axis_and_grid` is incorrect: Expected `Literal["above", "below", "left", "right"] | None`, found `Unknown | Nullable[Any | Literal["left"]]`
[error] invalid-argument-type - :204 -
Old: Argument to function `process_tools_arg` is incorrect: Expected `str | list[tuple[str, str]] | None`, found `Unknown | Nullable[Unknown]`
New: Argument to function `process_tools_arg` is incorrect: Expected `str | list[tuple[str, str]] | None`, found `Unknown | Nullable[Any]`
[error] invalid-argument-type - :209 -
Old: Argument to function `process_active_tools` is incorrect: Expected `Drag | str | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_active_tools` is incorrect: Expected `Drag | str | None`, found `Unknown | Nullable[Any | Literal["auto"]]`
[error] invalid-argument-type - :210 -
Old: Argument to function `process_active_tools` is incorrect: Expected `list[InspectTool] | InspectTool | str | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_active_tools` is incorrect: Expected `list[InspectTool] | InspectTool | str | None`, found `Unknown | Nullable[Any | Literal["auto"]]`
[error] invalid-argument-type - :211 -
Old: Argument to function `process_active_tools` is incorrect: Expected `Scroll | str | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_active_tools` is incorrect: Expected `Scroll | str | None`, found `Unknown | Nullable[Any | Literal["auto"]]`
[error] invalid-argument-type - :212 -
Old: Argument to function `process_active_tools` is incorrect: Expected `Tap | str | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_active_tools` is incorrect: Expected `Tap | str | None`, found `Unknown | Nullable[Any | Literal["auto"]]`
[error] invalid-argument-type - :213 -
Old: Argument to function `process_active_tools` is incorrect: Expected `GestureTool | str | None`, found `Unknown | Nullable[str]`
New: Argument to function `process_active_tools` is incorrect: Expected `GestureTool | str | None`, found `Unknown | Nullable[Any | Literal["auto"]]`

core (https://github.com/home-assistant/core)

homeassistant/helpers/target.py

[error] invalid-argument-type - :328:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :331:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :334:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventAreaRegistryUpdatedData]`

homeassistant/components/alexa/state_report.py

[error] invalid-argument-type - :341:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :342:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _async_entity_state_listener(event_: Event[EventStateChangedData]) -> CoroutineType[Any, Any, None]`
[error] invalid-argument-type - :343:9 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _async_entity_state_filter(data: EventStateChangedData) -> bool`

homeassistant/components/apache_kafka/__init__.py

[error] invalid-argument-type - :133:37 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :133:58 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@start.write(event: Event[EventStateChangedData]) -> CoroutineType[Any, Any, None]`

homeassistant/components/cloud/alexa_config.py

[error] invalid-argument-type - :272:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :273:17 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@async_initialize._handle_entity_registry_updated(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> CoroutineType[Any, Any, None]`

homeassistant/components/cloud/google_config.py

[error] invalid-argument-type - :269:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :270:17 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@async_initialize._handle_entity_registry_updated(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> None`
[error] invalid-argument-type - :275:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :276:17 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@async_initialize._handle_device_registry_updated(event: Event[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]) -> None`

homeassistant/components/conversation/default_agent.py

[error] invalid-argument-type - :290:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventAreaRegistryUpdatedData]`
[error] invalid-argument-type - :294:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]`
[error] invalid-argument-type - :298:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :300:17 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `bound method Self@_listen_clear_slot_list._filter_entity_registry_changes(event_data: _EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update) -> bool`
[error] invalid-argument-type - :303:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :305:17 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `bound method Self@_listen_clear_slot_list._filter_state_changes(event_data: EventStateChangedData) -> bool`

homeassistant/components/datadog/__init__.py

[error] invalid-argument-type - :124:31 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/device_tracker/config_entry.py

[error] invalid-argument-type - :166:27 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :166:61 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def handle_device_event(ev: Event[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]) -> None`

homeassistant/components/google_assistant/report_state.py

[error] invalid-argument-type - :190:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :191:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _async_entity_state_listener(event: Event[EventStateChangedData]) -> CoroutineType[Any, Any, None]`
[error] invalid-argument-type - :192:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _async_entity_state_filter(data: EventStateChangedData) -> bool`

homeassistant/components/google_pubsub/__init__.py

[error] invalid-argument-type - :77:21 - Argument to bound method `listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :77:42 - Argument to bound method `listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def send_to_pubsub(event: Event[EventStateChangedData]) -> Unknown`

homeassistant/components/logbook/helpers.py

[error] invalid-argument-type - :220:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :221:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _forward_state_events_filtered(event: Event[EventStateChangedData]) -> None`

homeassistant/components/logentries/__init__.py

[error] invalid-argument-type - :54:21 - Argument to bound method `listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/mqtt_statestream/__init__.py

[error] invalid-argument-type - :104:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :104:34 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _state_publisher(evt: Event[EventStateChangedData]) -> CoroutineType[Any, Any, None]`
[error] invalid-argument-type - :104:52 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _event_filter(event_data: EventStateChangedData) -> bool`

homeassistant/components/person/__init__.py

[error] invalid-argument-type - :238:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :239:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@async_load._entity_registry_updated(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> CoroutineType[Any, Any, None]`
[error] invalid-argument-type - :240:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `bound method Self@async_load._entity_registry_filter(event_data: _EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update) -> bool`

homeassistant/components/prometheus/__init__.py

[error] invalid-argument-type - :164:21 - Argument to bound method `listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :164:42 - Argument to bound method `listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method PrometheusMetrics.handle_state_changed_event(event: Event[EventStateChangedData]) -> None`
[error] invalid-argument-type - :166:9 - Argument to bound method `listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :167:9 - Argument to bound method `listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method PrometheusMetrics.handle_entity_registry_updated(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> None`

homeassistant/components/recorder/entity_registry.py

[error] invalid-argument-type - :52:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :53:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _async_entity_id_changed(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> None`
[error] invalid-argument-type - :54:9 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def entity_registry_changed_filter(event_data: _EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update) -> bool`

homeassistant/components/rfxtrx/__init__.py

[error] invalid-argument-type - :276:31 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :276:65 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _updated_device(event: Event[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]) -> None`

homeassistant/components/splunk/__init__.py

[error] invalid-argument-type - :127:27 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/statsd/__init__.py

[error] invalid-argument-type - :91:21 - Argument to bound method `listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/tasmota/device_automation.py

[error] invalid-argument-type - :61:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :62:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def async_device_removed(event: Event[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]) -> CoroutineType[Any, Any, None]`
[error] invalid-argument-type - :63:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _async_device_removed_filter(event_data: _EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update) -> bool`

homeassistant/components/voip/devices.py

[error] invalid-argument-type - :122:17 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :123:17 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def async_device_removed(ev: Event[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]) -> None`

homeassistant/components/websocket_api/commands.py

[error] invalid-argument-type - :454:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/zabbix/__init__.py

[error] invalid-argument-type - :214:25 - Argument to bound method `listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :214:46 - Argument to bound method `listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@setup._event_listener(event: Event[EventStateChangedData]) -> None`

homeassistant/config_entries.py

[error] invalid-argument-type - :3853:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :3854:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@async_setup._handle_entry_updated(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> None`
[error] invalid-argument-type - :3855:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _handle_entry_updated_filter(event_data: _EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update) -> bool`

homeassistant/core.py

[error] invalid-argument-type - :2356 -
Old: Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[dict[Unknown | str, Unknown | str | datetime | State | None]] | str`, found `EventType[EventStateReportedData]`
New: Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[EventStateReportedData | dict[Unknown | str, Unknown | str | datetime | State | None]] | str`, found `EventType[EventStateReportedData]`

homeassistant/helpers/area_registry.py

[error] invalid-argument-type - :526:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]`
[error] invalid-argument-type - :527:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _removed_from_registry_filter(event_data: _EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder | EventLabelRegistryUpdatedData) -> bool`
[error] invalid-argument-type - :528:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _handle_floor_registry_update(event: Event[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]) -> None`
[error] invalid-argument-type - :539:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventLabelRegistryUpdatedData]`
[error] invalid-argument-type - :540:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _removed_from_registry_filter(event_data: _EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder | EventLabelRegistryUpdatedData) -> bool`
[error] invalid-argument-type - :541:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _handle_label_registry_update(event: Event[EventLabelRegistryUpdatedData]) -> None`

homeassistant/helpers/device_registry.py

[error] invalid-argument-type - :1457:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventDeviceRegistryUpdatedData_Remove] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :1838:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventLabelRegistryUpdatedData]`
[error] invalid-argument-type - :1839:9 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _label_removed_from_registry_filter(event_data: EventLabelRegistryUpdatedData) -> bool`
[error] invalid-argument-type - :1840:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _handle_label_registry_update(event: Event[EventLabelRegistryUpdatedData]) -> None`
[error] invalid-argument-type - :1876:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :1877:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _async_entity_registry_changed(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> None`
[error] invalid-argument-type - :1878:13 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def entity_registry_changed_filter(event_data: _EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update) -> bool`

homeassistant/helpers/entity_registry.py

[error] invalid-argument-type - :830:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]`
[error] invalid-argument-type - :831:13 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `bound method Self@__init__.async_device_modified(event: Event[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Remove | _EventDeviceRegistryUpdatedData_Update]) -> None`
[error] invalid-argument-type - :1080:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventEntityRegistryUpdatedData_CreateRemove] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :1127:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventEntityRegistryUpdatedData_CreateRemove] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :1379:43 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventEntityRegistryUpdatedData_Update] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :1863:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventLabelRegistryUpdatedData]`
[error] invalid-argument-type - :1864:9 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _removed_from_registry_filter(event_data: EventLabelRegistryUpdatedData | EventCategoryRegistryUpdatedData) -> bool`
[error] invalid-argument-type - :1865:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _handle_label_registry_update(event: Event[EventLabelRegistryUpdatedData]) -> None`
[error] invalid-argument-type - :1876:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventCategoryRegistryUpdatedData]`
[error] invalid-argument-type - :1877:9 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def _removed_from_registry_filter(event_data: EventLabelRegistryUpdatedData | EventCategoryRegistryUpdatedData) -> bool`
[error] invalid-argument-type - :1878:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def _handle_category_registry_update(event: Event[EventCategoryRegistryUpdatedData]) -> None`
[error] invalid-argument-type - :1934:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]`
[error] invalid-argument-type - :1935:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def cleanup_restored_states(event: Event[_EventEntityRegistryUpdatedData_CreateRemove | _EventEntityRegistryUpdatedData_Update]) -> None`

homeassistant/helpers/event.py

[error] invalid-argument-type - :299:9 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :300:9 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def state_change_dispatcher(event: Event[EventStateChangedData]) -> None`
[error] invalid-argument-type - :301:9 - Argument to bound method `async_listen` is incorrect: Expected `((Mapping[str, Any], /) -> bool) | None`, found `def state_change_filter(event_data: EventStateChangedData) -> bool`
[error] invalid-argument-type - :861:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :861:34 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `Unknown | ((Event[EventStateChangedData], /) -> Any)`
[error] invalid-argument-type - :1447:13 - Argument to bound method `async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - :1447:34 - Argument to bound method `async_listen` is incorrect: Expected `(Event[Mapping[str, Any]], /) -> Coroutine[Any, Any, None] | None`, found `def state_for_cancel_listener(event: Event[EventStateChangedData]) -> None`

homeassistant/helpers/floor_registry.py

[error] invalid-argument-type - :224:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update] | str`, found `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]`
[error] invalid-argument-type - :237:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update] | str`, found `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]`
[error] invalid-argument-type - :279:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update] | str`, found `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]`
[error] invalid-argument-type - :306:13 - Argument to bound method `async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Reorder] | str`, found `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update | _EventFloorRegistryUpdatedData_Reorder]`

meson (https://github.com/mesonbuild/meson)

mesonbuild/interpreter/type_checking.py

[error] invalid-assignment - :474:48 - Object of type `KwargInfo[list[str | File | CustomTarget | ... omitted 5 union elements] | None]` is not assignable to `KwargInfo[list[str | File | CustomTarget | ... omitted 5 union elements]]`
[error] invalid-assignment - :481:45 - Object of type `KwargInfo[dict[str, str] | str]` is not assignable to `KwargInfo[dict[str, str]]`
[warning] unused-ignore-comment - :485:72 - Unused blanket `type: ignore` directive
[error] invalid-argument-type - :476:5 - Argument to bound method `__init__` is incorrect: Expected `type[list[str | File | CustomTarget | ... omitted 5 union elements]] | tuple[type[list[str | File | CustomTarget | ... omitted 5 union elements]] | ContainerTypeInfo, ...] | ContainerTypeInfo`, found `tuple[<class 'NoneType'>, ContainerTypeInfo]`

optuna (https://github.com/optuna/optuna)

optuna/storages/_rdb/alembic/versions/v3.0.0.a.py

[error] invalid-argument-type - :159 -
Old: Argument to function `migrate_new_distribution` is incorrect: Expected `str`, found `Unknown | Column[Unknown]`
New: Argument to function `migrate_new_distribution` is incorrect: Expected `str`, found `Unknown | Column[str]`
[error] invalid-argument-type - :188 -
Old: Argument to function `restore_old_distribution` is incorrect: Expected `str`, found `Unknown | Column[Unknown]`
New: Argument to function `restore_old_distribution` is incorrect: Expected `str`, found `Unknown | Column[str]`

paasta (https://github.com/yelp/paasta)

paasta_tools/instance/kubernetes.py

[error] invalid-return-type - :858 -
Old: Return type does not match returned value: expected `KubernetesVersionDict`, found `dict[Unknown | str, Unknown | str | int | list[Unknown] | None]`
New: Return type does not match returned value: expected `KubernetesVersionDict`, found `dict[Unknown | str, Unknown | str | int | ... omitted 3 union elements]`

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)

tests/series/test_series.py

[error] type-assertion-failure - :3699 -
Old: Type `Series[str]` does not match asserted type `Series[Unknown]`
New: Type `Series[str]` does not match asserted type `Series[Unknown | str]`
[error] type-assertion-failure - :3715 -
Old: Type `Series[str]` does not match asserted type `Series[Unknown]`
New: Type `Series[str]` does not match asserted type `Series[Any]`
[error] type-assertion-failure - :3729 -
Old: Type `Series[str]` does not match asserted type `Series[Unknown]`
New: Type `Series[str]` does not match asserted type `Unknown`
[error] type-assertion-failure - :3741 -
Old: Type `Series[str]` does not match asserted type `Series[Unknown]`
New: Type `Series[str]` does not match asserted type `Series[Any]`

prefect (https://github.com/PrefectHQ/prefect)

src/prefect/flow_runs.py

[error] invalid-assignment - :270 -
Old: Object of type `type[AutomaticRunInput[Unknown]] | type[Unknown]` is not assignable to `type[T@_in_process_pause] | None`
New: Object of type `type[AutomaticRunInput[@Todo]] | type[Unknown]` is not assignable to `type[T@_in_process_pause] | None`
[error] invalid-assignment - :425 -
Old: Object of type `type[AutomaticRunInput[Unknown]] | type[Unknown]` is not assignable to `type[T@suspend_flow_run] | None`
New: Object of type `type[AutomaticRunInput[@Todo]] | type[Unknown]` is not assignable to `type[T@suspend_flow_run] | None`

psycopg (https://github.com/psycopg/psycopg)

tests/test_connection_info.py

[error] unresolved-attribute - :175:12 - Object of type `BaseException` has no attribute `diag`

tests/test_errors.py

[error] unresolved-attribute - :36:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :80:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :116:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :175:13 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :195:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :214:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :215:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :233:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :251:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :261:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :262:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :282:12 - Object of type `BaseException` has no attribute `diag`
[error] unresolved-attribute - :283:12 - Object of type `BaseException` has no attribute `sqlstate`
[error] unresolved-attribute - :295:12 - Object of type `BaseException` has no attribute `pgconn`
[error] unresolved-attribute - :296:12 - Object of type `BaseException` has no attribute `pgconn`
[error] unresolved-attribute - :313:12 - Object of type `BaseException` has no attribute `pgresult`
[error] unresolved-attribute - :314:12 - Object of type `BaseException` has no attribute `pgresult`

tests/test_generators.py

[error] unresolved-attribute - :35:14 - Object of type `BaseException` has no attribute `pgconn`

tests/utils.py

[error] invalid-context-manager - :166 -
Old: Object of type `ExceptionInfo[BaseException]` cannot be used with `with` because it does not implement `__enter__` and `__exit__`
New: Object of type `ExceptionInfo[Unknown]` cannot be used with `with` because it does not implement `__enter__` and `__exit__`

pytest (https://github.com/pytest-dev/pytest)

testing/test_runner.py

[error] unresolved-attribute - :101:22 - Object of type `BaseException` has no attribute `exceptions`
[error] unresolved-attribute - :138:21 - Object of type `BaseException` has no attribute `exceptions`

scikit-build-core (https://github.com/scikit-build/scikit-build-core)

src/scikit_build_core/build/_pathutil.py

[error] invalid-argument-type - :25:38 - Argument to function `__new__` is incorrect: Expected `str | PathLike[str]`, found `DirEntry[Path]`
[error] invalid-argument-type - :27:24 - Argument to function `__new__` is incorrect: Expected `str | PathLike[str]`, found `DirEntry[Path]`

scipy-stubs (https://github.com/scipy/scipy-stubs)

tests/optimize/test_constraints.pyi

[error] type-assertion-failure - :26:1 - Type `Bounds[tuple[int], float64]` does not match asserted type `Bounds[tuple[int], float64 | signedinteger[_64Bit]]`

tests/sparse/test_lil.pyi

[error] type-assertion-failure - :29:1 - Type `lil_matrix[floating[_32Bit]]` does not match asserted type `lil_matrix[Any]`
[error] type-assertion-failure - :30:1 - Type `lil_matrix[floating[_32Bit]]` does not match asserted type `lil_matrix[Any]`
[error] type-assertion-failure - :52:1 - Type `lil_array[floating[_32Bit]]` does not match asserted type `lil_array[Any]`
[error] type-assertion-failure - :53:1 - Type `lil_array[floating[_32Bit]]` does not match asserted type `lil_array[Any]`

werkzeug (https://github.com/pallets/werkzeug)

src/werkzeug/datastructures/auth.py

[error] invalid-return-type - :201:16 - Return type does not match returned value: expected `dict[str, str | None]`, found `Unknown | CallbackDict[str, str] | dict[str, str | None]`
[error] unresolved-attribute - :205 -
Old: Cannot assign object of type `CallbackDict[Unknown, Unknown]` to attribute `_parameters` on type `Self@parameters` with custom `__setattr__` method.
New: Cannot assign object of type `CallbackDict[str, str]` to attribute `_parameters` on type `Self@parameters` with custom `__setattr__` method.