Skip to content

[WIP] Remove return type special-casing for plain type variables - #22478

Open
ilevkivskyi wants to merge 2 commits into
python:masterfrom
ilevkivskyi:remove-special-1
Open

ilevkivskyi wants to merge 2 commits into
python:masterfrom
ilevkivskyi:remove-special-1

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

kornia (https://github.com/kornia/kornia)
- kornia/geometry/pointcloud.py:482: error: Invalid index type "str | None" for "dict[str, tuple[str, Any | None]]"; expected type "str"  [index]
+ kornia/geometry/pointcloud.py:482: error: Argument 1 to "iter" has incompatible type "set[str | None]"; expected "SupportsIter[SupportsNext[str]]"  [arg-type]

psycopg (https://github.com/psycopg/psycopg)
+ tests/fix_faker.py:870: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/fix_faker.py:870: error: Argument 1 has incompatible type "list[type]"; expected "SupportsLenAndGetItem[ABCMeta]"  [arg-type]
+ tests/fix_faker.py:870: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment

spark (https://github.com/apache/spark)
+ python/pyspark/core/rdd.py:3745: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/core/rdd.py:3745: error: Argument 2 to "min" has incompatible type "float"; expected "int"  [arg-type]
+ python/pyspark/core/rdd.py:3745: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment
+ python/pyspark/pandas/frame.py:3794: error: Argument 1 to "reduce" has incompatible type "Callable[[Column | Series[Any], Column | Series[Any]], Column | Series[Any] | Index]"; expected "Callable[[Column | Series[Any], Column | Series[Any]], Column | Series[Any]]"  [arg-type]
+ python/pyspark/pandas/frame.py:3794: error: Incompatible return value type (got "Column | Series[Any] | Index", expected "Column | Series[Any]")  [return-value]

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/server/events/filters.py:200: error: Incompatible types in assignment (expression has type "SupportsDunderLT[Any] | SupportsDunderGT[Any]", variable has type "DateTime")  [assignment]
+ src/prefect/server/events/filters.py:200: error: Argument 1 to "max" has incompatible type "datetime"; expected "DateTime"  [arg-type]
- src/prefect/cli/deployment.py:1031: error: Incompatible types in assignment (expression has type "DeploymentSchedule | None", variable has type "DeploymentSchedule")  [assignment]
+ src/prefect/cli/deployment.py:1032: error: Argument 2 to "next" has incompatible type "None"; expected "DeploymentSchedule"  [arg-type]

operator (https://github.com/canonical/operator)
- ops/_main.py:102: error: Incompatible types in assignment (expression has type "Storage | None", variable has type "Storage")  [assignment]
+ ops/_main.py:102: error: Argument 2 to "next" has incompatible type "None"; expected "Storage"  [arg-type]

strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/types/object_type.py:632: error: Unused "type: ignore" comment  [unused-ignore]
+ strawberry/types/object_type.py:705: error: Unused "type: ignore" comment  [unused-ignore]
+ strawberry/federation/object_type.py:48: error: Unused "type: ignore" comment  [unused-ignore]
+ strawberry/federation/object_type.py:49: error: Argument 1 to "type" has incompatible type "T | None"; expected "T"  [arg-type]

colour (https://github.com/colour-science/colour)
- colour/colorimetry/spectrum.py:759: error: Incompatible types in assignment (expression has type "object", variable has type "type[ProtocolExtrapolator] | None")  [assignment]
- colour/algebra/interpolation/tests/test_interpolation.py:2349: error: Incompatible types in assignment (expression has type "ndarray[tuple[()], dtype[float64]] | float", variable has type "float")  [assignment]
+ colour/algebra/interpolation/tests/test_interpolation.py:2349: error: Argument 1 to "abs" has incompatible type "ndarray[tuple[()], dtype[float64]]"; expected "SupportsAbs[float]"  [arg-type]

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/third_party/beartype.py:128: error: Incompatible types in assignment (expression has type "_T", variable has type "_T")  [assignment]
+ src/hydra_zen/third_party/beartype.py:128: error: Argument 1 to "beartype" has incompatible type "_T"; expected "_T"  [arg-type]

pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/aglib/elf.py: note: In function "get_ehdr":
+ pwndbg/aglib/elf.py:344: error: Argument 1 to "read" has incompatible type "UnionType[Elf32_Ehdr, Elf64_Ehdr]"; expected "Elf32_Ehdr | Elf64_Ehdr"  [arg-type]
+ pwndbg/aglib/elf.py: note: At top level:
+ pwndbg/aglib/elf.py:345: error: Unused "type: ignore" comment  [unused-ignore]

zulip (https://github.com/zulip/zulip)
+ zerver/webhooks/slack/view.py:126: error: Argument 1 to "tame" of "WildValue" has incompatible type "Callable[[str, object], str | None]"; expected "Callable[[str, object], str]"  [arg-type]
+ zerver/webhooks/slack/view.py:127: error: Argument 1 to "tame" of "WildValue" has incompatible type "Callable[[str, object], str | None]"; expected "Callable[[str, object], str]"  [arg-type]
+ zerver/management/commands/export_search.py:228: note: Left operand is of type "Q | Any"

scrapy (https://github.com/scrapy/scrapy)
- scrapy/statscollectors.py:87: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "Any | None"  [type-var]
- scrapy/statscollectors.py:92: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "Any | None"  [type-var]
+ scrapy/shell.py:227: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/test_crawler.py:230: error: Unused "type: ignore" comment  [unused-ignore]
+ tests/test_crawler.py:230: error: Argument 1 to "get_addon" of "Crawler" has incompatible type "type[DefaultSpider]"; expected "type[TrackingAddon]"  [arg-type]
+ tests/test_crawler.py:230: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment
+ tests/test_crawler.py:233: error: Argument 1 to "get_addon" of "Crawler" has incompatible type "type[ParentAddon]"; expected "type[TrackingAddon]"  [arg-type]

comtypes (https://github.com/enthought/comtypes)
+ comtypes/server/register.py:335: error: Argument 1 to "abspath" has incompatible type "str | None"; expected "str"  [arg-type]
- comtypes/server/register.py:335: error: Value of type variable "AnyStr" of "abspath" cannot be "str | None"  [type-var]
- comtypes/server/register.py:335: error: Incompatible return value type (got "str | None", expected "str")  [return-value]

antidote (https://github.com/Finistere/antidote)
+ src/antidote/lib/interface_ext/_provider.py:313: error: Generator has incompatible item type "NewWeight"; expected "Weight"  [misc]
- src/antidote/lib/interface_ext/_provider.py:312: error: Argument "weight" to "replace" of "CandidateImplementation[Weight]" has incompatible type "NewWeight"; expected "Weight"  [arg-type]
+ src/antidote/lib/interface_ext/_provider.py:314: error: Argument 2 to "sum" has incompatible type "NewWeight"; expected "Weight"  [arg-type]

core (https://github.com/home-assistant/core)
+ homeassistant/config.py:378: error: Unused "type: ignore" comment  [unused-ignore]
+ homeassistant/helpers/entity_registry.py:1782: error: Argument 1 to "none_if_undefined" has incompatible type "Mapping[str, Any] | Undefined | None"; expected "Mapping[str, Any] | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1784: error: Argument 1 to "none_if_undefined" has incompatible type "str | Undefined | None"; expected "str | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1785: error: Argument 1 to "none_if_undefined" has incompatible type "str | Undefined | None"; expected "str | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1790: error: Argument 1 to "none_if_undefined" has incompatible type "EntityCategory | Undefined | None"; expected "EntityCategory | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1800: error: Argument 1 to "none_if_undefined" has incompatible type "str | Undefined | None"; expected "str | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1801: error: Argument 1 to "none_if_undefined" has incompatible type "str | Undefined | None"; expected "str | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1807: error: Argument 1 to "none_if_undefined" has incompatible type "str | Undefined | None"; expected "str | Undefined"  [arg-type]
+ homeassistant/helpers/entity_registry.py:1809: error: Argument 1 to "none_if_undefined" has incompatible type "str | Undefined | None"; expected "str | Undefined"  [arg-type]
- homeassistant/components/goodwe/number.py:177: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "float | Any | None"  [type-var]
- homeassistant/components/goodwe/number.py:177: error: Incompatible types in assignment (expression has type "float | Any | None", variable has type "float")  [assignment]
+ homeassistant/components/goodwe/number.py:178: error: Argument 1 to "max" has incompatible type "float | None"; expected "float"  [arg-type]

discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/converter.py:269: error: Incompatible types in assignment (expression has type "Member | User | None", variable has type "Member | None")  [assignment]
+ discord/ext/commands/converter.py:269: error: Argument 1 has incompatible type "list[User | Member]"; expected "Iterable[Member]"  [arg-type]
+ discord/ext/commands/converter.py:321: error: Argument 1 has incompatible type "list[User | Member]"; expected "Iterable[User]"  [arg-type]
+ discord/ext/commands/converter.py:328: error: Unused "type: ignore" comment  [unused-ignore]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/dependencies/data.py:220: error: Argument "callback" to "inject" has incompatible type "Callable[..., Coroutine[Any, Any, _T]]"; expected "Callable[..., Coroutine[Any, Any, Never] | Never]"  [arg-type]
- tanjun/dependencies/data.py:347: error: Argument "callback" to "inject" has incompatible type "Callable[..., Coroutine[Any, Any, _T]]"; expected "Callable[..., Coroutine[Any, Any, Never] | Never]"  [arg-type]
- tanjun/context/menu.py:132: error: Incompatible return value type (got "Unique", expected "InteractionMember | User | Message")  [return-value]
+ tanjun/context/menu.py:200: error: Argument "default" to "resolve_to_member" of "MenuContext" has incompatible type "None"; expected "User"  [arg-type]
+ tanjun/clients.py:2428: error: Argument 1 to "get_type_dependency" of "Client" has incompatible type "type[SingleStoreCache[AuthorizationApplication]]"; expected "type[SingleStoreCache[Application]] | type[None]"  [arg-type]

pandera (https://github.com/pandera-dev/pandera)
+ pandera/engines/polars_engine.py:794: error: Argument "default" to "field" has incompatible type "None"; expected "DataFrameSchema"  [arg-type]
+ pandera/engines/polars_engine.py:795: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/polars_engine.py:1126: error: Argument "default" to "field" has incompatible type "None"; expected "type[BaseModel]"  [arg-type]
+ pandera/engines/polars_engine.py:1127: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1404: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1404: error: Argument "default" to "field" has incompatible type "None"; expected "PeriodDtype"  [arg-type]
+ pandera/engines/pandas_engine.py:1404: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment
+ pandera/engines/pandas_engine.py:1427: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1427: error: Argument "default" to "field" has incompatible type "None"; expected "SparseDtype"  [arg-type]
+ pandera/engines/pandas_engine.py:1427: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment
+ pandera/engines/pandas_engine.py:1453: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1453: error: Argument "default" to "field" has incompatible type "None"; expected "IntervalDtype"  [arg-type]
+ pandera/engines/pandas_engine.py:1453: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment
+ pandera/engines/pandas_engine.py:1479: error: Argument "default" to "field" has incompatible type "None"; expected "type[BaseModel]"  [arg-type]
+ pandera/engines/pandas_engine.py:1480: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1601: error: Unused "type: ignore" comment  [unused-ignore]
+ pandera/engines/pandas_engine.py:1602: error: Argument "default" to "field" has incompatible type "None"; expected "type[BaseModel]"  [arg-type]

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/local.py:496: error: Unused "type: ignore" comment  [unused-ignore]
+ src/werkzeug/local.py:496: error: Argument 1 has incompatible type "Local"; expected "T"  [arg-type]
+ src/werkzeug/local.py:496: note: Error code "arg-type" not covered by "type: ignore[return-value]" comment

sympy (https://github.com/sympy/sympy)
+ sympy/matrices/matrixbase.py:4927: error: No overload variant of "__setitem__" of "list" matches argument types "int", "int"  [call-overload]
+ sympy/matrices/matrixbase.py:4927: note: Possible overload variants:
+ sympy/matrices/matrixbase.py:4927: note:     def __setitem__(self, SupportsIndex, Expr, /) -> None
+ sympy/matrices/matrixbase.py:4927: note:     def __setitem__(self, slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], Iterable[Expr], /) -> None

schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/cli/commands/replay/executor.py:602: error: Incompatible return value type (got "str | bytes | None", expected "str | None")  [return-value]
+ src/schemathesis/cli/commands/replay/executor.py:602: error: Generator has incompatible item type "str | bytes"; expected "str | None"  [misc]

materialize (https://github.com/MaterializeInc/materialize)
- misc/python/materialize/parallel_workload/action.py:1791: error: Incompatible types in assignment (expression has type "Schema", variable has type "MzTempSchema")  [assignment]
- misc/python/materialize/parallel_workload/action.py:3681: error: Incompatible types in assignment (expression has type "Schema", variable has type "MzTempSchema")  [assignment]
+ misc/python/materialize/parallel_workload/action.py:1791: error: Argument 1 to "choice" of "Random" has incompatible type "list[Schema]"; expected "SupportsLenAndGetItem[MzTempSchema]"  [arg-type]
+ misc/python/materialize/parallel_workload/action.py:3681: error: Argument 1 to "choice" of "Random" has incompatible type "list[Schema]"; expected "SupportsLenAndGetItem[MzTempSchema]"  [arg-type]

cvxpy (https://github.com/cvxpy/cvxpy)
- cvxpy/constraints/nonpos.py:117: error: Incompatible return value type (got "numpy.bool[builtins.bool]", expected "float")  [return-value]
- cvxpy/constraints/nonpos.py:192: error: Incompatible return value type (got "numpy.bool[builtins.bool]", expected "float")  [return-value]
- cvxpy/constraints/nonpos.py:307: error: Incompatible return value type (got "numpy.bool[builtins.bool]", expected "float")  [return-value]
+ cvxpy/constraints/nonpos.py:117: error: Argument 1 to "abs" has incompatible type "numpy.bool[builtins.bool]"; expected "SupportsAbs[float]"  [arg-type]
+ cvxpy/constraints/nonpos.py:192: error: Argument 1 to "abs" has incompatible type "numpy.bool[builtins.bool]"; expected "SupportsAbs[float]"  [arg-type]
+ cvxpy/constraints/nonpos.py:307: error: Argument 1 to "abs" has incompatible type "numpy.bool[builtins.bool]"; expected "SupportsAbs[float]"  [arg-type]

freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/data/metrics.py:259: error: Argument "drawdown_abs" to "DrawDownResult" has incompatible type "Series[Any]"; expected "float"  [arg-type]
+ freqtrade/data/metrics.py:259: error: Argument 1 to "abs" has incompatible type "Series[Any]"; expected "SupportsAbs[float]"  [arg-type]

xarray (https://github.com/pydata/xarray)
+ xarray/computation/weighted.py:260: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/computation/weighted.py: note: In member "_sum_of_squares" of class "Weighted":
+ xarray/computation/weighted.py:260: error: Argument 2 to "_reduce" of "Weighted" has incompatible type "T_DataArray@__init__"; expected "T_DataArray@_sum_of_squares"  [arg-type]
+ xarray/computation/weighted.py:260: note: Error code "arg-type" not covered by "type: ignore[return-value]" comment
+ xarray/computation/weighted.py: note: At top level:
+ xarray/computation/weighted.py:269: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/computation/weighted.py: note: In member "_weighted_sum" of class "Weighted":
+ xarray/computation/weighted.py:269: error: Argument 2 to "_reduce" of "Weighted" has incompatible type "T_DataArray@__init__"; expected "T_DataArray@_weighted_sum"  [arg-type]
+ xarray/computation/weighted.py:269: note: Error code "arg-type" not covered by "type: ignore[return-value]" comment

ibis (https://github.com/ibis-project/ibis)
- ibis/expr/api.py:1234: error: Incompatible return value type (got "Scalar", expected "IntervalScalar")  [return-value]
+ ibis/expr/api.py:1234: error: Argument 2 to "reduce" has incompatible type "list[Scalar]"; expected "Iterable[IntervalScalar]"  [arg-type]
+ ibis/expr/types/_rich.py:249: error: Argument 2 to "min" has incompatible type "int | None"; expected "int"  [arg-type]
- ibis/expr/types/_rich.py:249: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "int | None"  [type-var]
- ibis/expr/types/_rich.py:249: error: Incompatible types in assignment (expression has type "int | None", variable has type "int")  [assignment]

jax (https://github.com/google/jax)
- jax/_src/numpy/array_creation.py:486: error: Argument 1 to "shape" has incompatible type "numpy.bool[builtins.bool] | number[Any, Any] | int | float | complex | Any | DuckTypedArray"; expected "_SupportsShape[Never]"  [arg-type]
- jax/_src/pallas/fuser/block_spec.py:2834: error: Argument 1 to "append" of "list" has incompatible type "Element | Squeezed | Blocked | BoundedSlice | Indirect | int | None"; expected "Blocked"  [arg-type]
+ jax/_src/pallas/fuser/block_spec.py:2834: error: Argument 1 to "next" has incompatible type "Iterator[Element | Squeezed | Blocked | BoundedSlice | Indirect | int | None]"; expected "SupportsNext[Blocked]"  [arg-type]

meson (https://github.com/mesonbuild/meson)
+ mesonbuild/cargo/cfg.py:151:38: error: Argument 1 to "next" has incompatible type "Iterator[tuple[tuple[TokenType, str | None], tuple[TokenType, str | None] | None]]"; expected "SupportsNext[tuple[tuple[TokenType, str | None], str | None]]"  [arg-type]
+ mesonbuild/cargo/cfg.py:162:38: error: Argument 1 to "next" has incompatible type "Iterator[tuple[tuple[TokenType, str | None], tuple[TokenType, str | None] | None]]"; expected "SupportsNext[tuple[tuple[TokenType, str | None], str | None]]"  [arg-type]
+ mesonbuild/cargo/cfg.py:166:38: error: Argument 1 to "next" has incompatible type "Iterator[tuple[tuple[TokenType, str | None], tuple[TokenType, str | None] | None]]"; expected "SupportsNext[tuple[tuple[TokenType, str | None], str | None]]"  [arg-type]
+ mesonbuild/cargo/cfg.py:172:34: error: Argument 1 to "next" has incompatible type "Iterator[tuple[tuple[TokenType, str | None], tuple[TokenType, str | None] | None]]"; expected "SupportsNext[tuple[tuple[TokenType, str | None], str | None]]"  [arg-type]
+ mesonbuild/cargo/cfg.py:175:34: error: Argument 1 to "next" has incompatible type "Iterator[tuple[tuple[TokenType, str | None], tuple[TokenType, str | None] | None]]"; expected "SupportsNext[tuple[tuple[TokenType, str | None], str | None]]"  [arg-type]

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/util/_lines.py: note: In function "parse_line_num_spec":
+ sphinx/util/_lines.py:19:44: error: Argument 1 to "max" has incompatible type "int"; expected "str"  [arg-type]
+ sphinx/util/_lines.py:19:51: error: Argument 2 to "max" has incompatible type "int"; expected "str"  [arg-type]

apprise (https://github.com/caronc/apprise)
- apprise/plugins/xmpp/base.py:234: error: Incompatible types in assignment (expression has type "str | None", variable has type "str")  [assignment]
+ apprise/plugins/xmpp/base.py:236: error: Argument 2 to "next" has incompatible type "None"; expected "str"  [arg-type]
- apprise/plugins/telegram.py:898: error: Incompatible types in assignment (expression has type "object", variable has type "str")  [assignment]
+ apprise/plugins/telegram.py:899: error: Generator has incompatible item type "tuple[object, object]"; expected "tuple[str, str]"  [misc]

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ bson/__init__.py:1404: error: Unused "type: ignore" comment  [unused-ignore]
+ bson/__init__.py:1404: error: Argument 2 to "_bson_to_dict" has incompatible type "CodecOptions[_DocumentType] | CodecOptions[dict[str, Any]]"; expected "CodecOptions[dict[str, Any] | _DocumentType]"  [arg-type]
+ bson/__init__.py:1404: note: Error code "arg-type" not covered by "type: ignore[misc]" comment
+ pymongo/synchronous/auth_oidc.py:54: error: Argument "default_factory" to "field" has incompatible type "Callable[[], lock]"; expected "Callable[[], Lock]"  [arg-type]
+ pymongo/synchronous/auth_oidc.py:54: note: Error code "arg-type" not covered by "type: ignore[assignment]" comment

paasta (https://github.com/yelp/paasta)
- paasta_tools/utils.py:3487: error: Incompatible return value type (got "dict[str, Any] | Any", expected "InstanceConfigDict")  [return-value]
+ paasta_tools/utils.py:3489: error: Argument "defaults" to "deep_merge_dictionaries" has incompatible type "dict[str, Any]"; expected "InstanceConfigDict"  [arg-type]
- paasta_tools/kubernetes_tools.py:522: error: Argument "config_dict" to "KubernetesDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "KubernetesDeploymentConfigDict"  [arg-type]
- paasta_tools/kubernetes_tools.py:534: error: Argument "config_dict" to "KubernetesDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "KubernetesDeploymentConfigDict"  [arg-type]
- paasta_tools/nrtsearchservice_tools.py:116: error: Argument "config_dict" to "NrtsearchServiceDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "NrtsearchServiceDeploymentConfigDict"  [arg-type]
- paasta_tools/nrtsearchservice_tools.py:128: error: Argument "config_dict" to "NrtsearchServiceDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "NrtsearchServiceDeploymentConfigDict"  [arg-type]
- paasta_tools/monkrelaycluster_tools.py:119: error: Argument "config_dict" to "MonkRelayClusterDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "MonkRelayClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/monkrelaycluster_tools.py:131: error: Argument "config_dict" to "MonkRelayClusterDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "MonkRelayClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/kafkacluster_tools.py:116: error: Argument "config_dict" to "KafkaClusterDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "KafkaClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/kafkacluster_tools.py:128: error: Argument "config_dict" to "KafkaClusterDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "KafkaClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/eks_tools.py:75: error: Argument "config_dict" to "EksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "KubernetesDeploymentConfigDict"  [arg-type]
- paasta_tools/eks_tools.py:87: error: Argument "config_dict" to "EksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "KubernetesDeploymentConfigDict"  [arg-type]
- paasta_tools/cassandracluster_tools.py:183: error: Argument "config_dict" to "CassandraClusterDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "CassandraClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/cassandracluster_tools.py:195: error: Argument "config_dict" to "CassandraClusterDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "CassandraClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/nrtsearchserviceeks_tools.py:53: error: Argument "config_dict" to "NrtsearchServiceEksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "NrtsearchServiceDeploymentConfigDict"  [arg-type]
- paasta_tools/nrtsearchserviceeks_tools.py:65: error: Argument "config_dict" to "NrtsearchServiceEksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "NrtsearchServiceDeploymentConfigDict"  [arg-type]
- paasta_tools/cassandraclustereks_tools.py:75: error: Argument "config_dict" to "CassandraClusterEksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "CassandraClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/cassandraclustereks_tools.py:87: error: Argument "config_dict" to "CassandraClusterEksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "CassandraClusterDeploymentConfigDict"  [arg-type]
- paasta_tools/flink_tools.py:224: error: Argument "config_dict" to "FlinkDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "FlinkDeploymentConfigDict"  [arg-type]
- paasta_tools/flink_tools.py:236: error: Argument "config_dict" to "FlinkDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "FlinkDeploymentConfigDict"  [arg-type]
- paasta_tools/flinkeks_tools.py:75: error: Argument "config_dict" to "FlinkEksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "FlinkDeploymentConfigDict"  [arg-type]
- paasta_tools/flinkeks_tools.py:87: error: Argument "config_dict" to "FlinkEksDeploymentConfig" has incompatible type "InstanceConfigDict | Any"; expected "FlinkDeploymentConfigDict"  [arg-type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant