Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Display FQN for imported base classes in errors about incompatible ov…#19115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
east825 wants to merge1 commit intopython:master
base:master
Choose a base branch
Loading
fromeast825:gh19112

Conversation

east825
Copy link

…errides

Fixes#19112.

(Explain how this PR changes mypy.)

@github-actionsGitHub Actions
Copy link
Contributor

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

prefect (https://github.com/PrefectHQ/prefect)- src/prefect/events/worker.py:100: error: Signature of "instance" incompatible with supertype "_QueueServiceBase"  [override]+ src/prefect/events/worker.py:100: error: Signature of "instance" incompatible with supertype "prefect._internal.concurrency.services._QueueServiceBase"  [override]- src/prefect/concurrency/v1/services.py:39: error: Signature of "acquire" incompatible with supertype "FutureQueueService"  [override]+ src/prefect/concurrency/v1/services.py:39: error: Signature of "acquire" incompatible with supertype "prefect._internal.concurrency.services.FutureQueueService"  [override]- src/prefect/server/events/stream.py:147: error: Return type "dict[str, str]" of "environment_variable_name" incompatible with return type "str" in supertype "Service"  [override]+ src/prefect/server/events/stream.py:147: error: Return type "dict[str, str]" of "environment_variable_name" incompatible with return type "str" in supertype "prefect.server.services.base.Service"  [override]- src/prefect/server/events/stream.py:154: error: Return type "Coroutine[Any, Any, None]" of "start" incompatible with return type "Coroutine[Any, Any, Never]" in supertype "Service"  [override]+ src/prefect/server/events/stream.py:154: error: Return type "Coroutine[Any, Any, None]" of "start" incompatible with return type "Coroutine[Any, Any, Never]" in supertype "prefect.server.services.base.Service"  [override]- src/prefect/transactions.py:108: error: Signature of "get" incompatible with supertype "ContextModel"  [override]+ src/prefect/transactions.py:108: error: Signature of "get" incompatible with supertype "prefect.context.ContextModel"  [override]- src/prefect/concurrency/services.py:35: error: Signature of "acquire" incompatible with supertype "FutureQueueService"  [override]+ src/prefect/concurrency/services.py:35: error: Signature of "acquire" incompatible with supertype "prefect._internal.concurrency.services.FutureQueueService"  [override]- src/prefect/testing/fixtures.py:424: error: Signature of "process_events" incompatible with supertype "EventsPipeline"  [override]+ src/prefect/testing/fixtures.py:424: error: Signature of "process_events" incompatible with supertype "prefect.server.events.pipeline.EventsPipeline"  [override]psycopg (https://github.com/psycopg/psycopg)- tests/scripts/spiketest.py:108: error: Signature of "connect" incompatible with supertype "Connection"  [override]+ tests/scripts/spiketest.py:108: error: Signature of "connect" incompatible with supertype "psycopg.connection.Connection"  [override]hydpy (https://github.com/hydpy-dev/hydpy)- hydpy/core/masktools.py:106: error: Argument 1 of "__contains__" is incompatible with supertype "ndarray"; supertype defines the argument type as "object"  [override]+ hydpy/core/masktools.py:106: error: Argument 1 of "__contains__" is incompatible with supertype "numpy.ndarray"; supertype defines the argument type as "object"  [override]steam.py (https://github.com/Gobot1234/steam.py)- steam/ext/commands/utils.py:43: error: Signature of "get" incompatible with supertype "dict"  [override]+ steam/ext/commands/utils.py:43: error: Signature of "get" incompatible with supertype "builtins.dict"  [override]- steam/ext/commands/utils.py:43: error: Signature of "get" incompatible with supertype "Mapping"  [override]+ steam/ext/commands/utils.py:43: error: Signature of "get" incompatible with supertype "typing.Mapping"  [override]- steam/ext/commands/utils.py:52: error: Signature of "pop" incompatible with supertype "dict"  [override]+ steam/ext/commands/utils.py:52: error: Signature of "pop" incompatible with supertype "builtins.dict"  [override]- steam/ext/commands/utils.py:52: error: Signature of "pop" incompatible with supertype "MutableMapping"  [override]+ steam/ext/commands/utils.py:52: error: Signature of "pop" incompatible with supertype "typing.MutableMapping"  [override]- steam/trade.py:189: error: Argument 1 of "__mro_entries__" is incompatible with supertype "GenericAlias"; supertype defines the argument type as "Iterable[object]"  [override]+ steam/trade.py:189: error: Argument 1 of "__mro_entries__" is incompatible with supertype "types.GenericAlias"; supertype defines the argument type as "Iterable[object]"  [override]- steam/manifest.py:1197: error: Signature of "apps" incompatible with supertype "PartialPackage"  [override]+ steam/manifest.py:1197: error: Signature of "apps" incompatible with supertype "steam.package.PartialPackage"  [override]- steam/ext/tf2/currency.py:97: error: Signature of "__add__" incompatible with supertype "Fraction"  [override]+ steam/ext/tf2/currency.py:97: error: Signature of "__add__" incompatible with supertype "fractions.Fraction"  [override]- steam/ext/tf2/currency.py:100: error: Signature of "__sub__" incompatible with supertype "Fraction"  [override]+ steam/ext/tf2/currency.py:100: error: Signature of "__sub__" incompatible with supertype "fractions.Fraction"  [override]- steam/ext/tf2/currency.py:103: error: Signature of "__mul__" incompatible with supertype "Fraction"  [override]+ steam/ext/tf2/currency.py:103: error: Signature of "__mul__" incompatible with supertype "fractions.Fraction"  [override]- steam/ext/tf2/currency.py:106: error: Signature of "__truediv__" incompatible with supertype "Fraction"  [override]+ steam/ext/tf2/currency.py:106: error: Signature of "__truediv__" incompatible with supertype "fractions.Fraction"  [override]- steam/ext/csgo/models.py:179: error: Signature of "inventory" incompatible with supertype "ClientUser"  [override]+ steam/ext/csgo/models.py:179: error: Signature of "inventory" incompatible with supertype "steam._gc.client.ClientUser"  [override]+ steam/ext/csgo/models.py:179: error: Signature of "inventory" incompatible with supertype "steam.user.ClientUser"  [override]- steam/ext/csgo/models.py:179: error: Signature of "inventory" incompatible with supertype "PartialUser"  [override]+ steam/ext/csgo/models.py:179: error: Signature of "inventory" incompatible with supertype "steam.abc.PartialUser"  [override]- steam/ext/tf2/client.py:36: error: Signature of "inventory" incompatible with supertype "ClientUser"  [override]+ steam/ext/tf2/client.py:36: error: Signature of "inventory" incompatible with supertype "steam._gc.client.ClientUser"  [override]+ steam/ext/tf2/client.py:36: error: Signature of "inventory" incompatible with supertype "steam.user.ClientUser"  [override]- steam/ext/tf2/client.py:36: error: Signature of "inventory" incompatible with supertype "PartialUser"  [override]+ steam/ext/tf2/client.py:36: error: Signature of "inventory" incompatible with supertype "steam.abc.PartialUser"  [override]SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)- rolemanagement/utils.py:61: error: Argument 2 of "update_roles_atomically" is incompatible with supertype "MixinMeta"; supertype defines the argument type as "Optional[List[Any]]"  [override]+ rolemanagement/utils.py:61: error: Argument 2 of "update_roles_atomically" is incompatible with supertype "rolemanagement.abc.MixinMeta"; supertype defines the argument type as "Optional[List[Any]]"  [override]- rolemanagement/utils.py:62: error: Argument 3 of "update_roles_atomically" is incompatible with supertype "MixinMeta"; supertype defines the argument type as "Optional[List[Any]]"  [override]+ rolemanagement/utils.py:62: error: Argument 3 of "update_roles_atomically" is incompatible with supertype "rolemanagement.abc.MixinMeta"; supertype defines the argument type as "Optional[List[Any]]"  [override]xarray (https://github.com/pydata/xarray)+ xarray/conventions.py:413: error: Argument "decode_timedelta" to "decode_cf_variable" has incompatible type "object"; expected "bool | CFTimedeltaCoder | None"  [arg-type]operator (https://github.com/canonical/operator)- ops/jujuversion.py:65: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/jujuversion.py:65: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/pebble.py:890: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/pebble.py:890: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/pebble.py:952: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/pebble.py:952: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/pebble.py:1039: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/pebble.py:1039: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/pebble.py:1154: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/pebble.py:1154: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/pebble.py:1292: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/pebble.py:1292: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/pebble.py:1927: error: Argument 1 of "write" is incompatible with supertype "_BufferedIOBase"; supertype defines the argument type as "Buffer"  [override]+ ops/pebble.py:1927: error: Argument 1 of "write" is incompatible with supertype "_io._BufferedIOBase"; supertype defines the argument type as "Buffer"  [override]- ops/pebble.py:1951: error: Return type "str | bytes" of "read" incompatible with return type "bytes" in supertype "_BufferedIOBase"  [override]+ ops/pebble.py:1951: error: Return type "str | bytes" of "read" incompatible with return type "bytes" in supertype "_io._BufferedIOBase"  [override]- ops/pebble.py:1951: error: Argument 1 of "read" is incompatible with supertype "_BufferedIOBase"; supertype defines the argument type as "int | None"  [override]+ ops/pebble.py:1951: error: Argument 1 of "read" is incompatible with supertype "_io._BufferedIOBase"; supertype defines the argument type as "int | None"  [override]- ops/pebble.py:1984: error: Return type "str | bytes" of "read1" incompatible with return type "bytes" in supertype "_BufferedIOBase"  [override]+ ops/pebble.py:1984: error: Return type "str | bytes" of "read1" incompatible with return type "bytes" in supertype "_io._BufferedIOBase"  [override]- ops/model.py:878: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object"  [override]+ ops/model.py:878: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Mapping"; supertype defines the argument type as "object"  [override]- ops/model.py:878: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object"  [override]+ ops/model.py:878: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Container"; supertype defines the argument type as "object"  [override]- ops/model.py:923: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object"  [override]+ ops/model.py:923: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Mapping"; supertype defines the argument type as "object"  [override]- ops/model.py:923: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object"  [override]+ ops/model.py:923: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Container"; supertype defines the argument type as "object"  [override]- ops/model.py:929: error: Return type "Iterable[str]" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable"  [override]+ ops/model.py:929: error: Return type "Iterable[str]" of "__iter__" incompatible with return type "Iterator[str]" in supertype "typing.Iterable"  [override]- ops/model.py:1000: error: Signature of "get" incompatible with supertype "Mapping"  [override]+ ops/model.py:1000: error: Signature of "get" incompatible with supertype "typing.Mapping"  [override]- ops/model.py:1025: error: Return type "Iterable[Binding]" of "__iter__" incompatible with return type "Iterator[str]" in supertype "Iterable"  [override]+ ops/model.py:1025: error: Return type "Iterable[Binding]" of "__iter__" incompatible with return type "Iterator[str]" in supertype "typing.Iterable"  [override]- ops/model.py:1801: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object"  [override]+ ops/model.py:1801: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Mapping"; supertype defines the argument type as "object"  [override]- ops/model.py:1801: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object"  [override]+ ops/model.py:1801: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Container"; supertype defines the argument type as "object"  [override]- ops/model.py:1960: error: Signature of "update" incompatible with supertype "MutableMapping"  [override]+ ops/model.py:1960: error: Signature of "update" incompatible with supertype "typing.MutableMapping"  [override]- ops/model.py:2030: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/model.py:2030: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/model.py:2240: error: Argument 1 of "__contains__" is incompatible with supertype "Mapping"; supertype defines the argument type as "object"  [override]+ ops/model.py:2240: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Mapping"; supertype defines the argument type as "object"  [override]- ops/model.py:2240: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object"  [override]+ ops/model.py:2240: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Container"; supertype defines the argument type as "object"  [override]- ops/framework.py:130: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ops/framework.py:130: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ops/framework.py:1387: error: Signature of "__getitem__" incompatible with supertype "MutableSequence"  [override]+ ops/framework.py:1387: error: Signature of "__getitem__" incompatible with supertype "typing.MutableSequence"  [override]- ops/framework.py:1387: error: Signature of "__getitem__" incompatible with supertype "Sequence"  [override]+ ops/framework.py:1387: error: Signature of "__getitem__" incompatible with supertype "typing.Sequence"  [override]- ops/framework.py:1390: error: Signature of "__setitem__" incompatible with supertype "MutableSequence"  [override]+ ops/framework.py:1390: error: Signature of "__setitem__" incompatible with supertype "typing.MutableSequence"  [override]- ops/framework.py:1394: error: Signature of "__delitem__" incompatible with supertype "MutableSequence"  [override]+ ops/framework.py:1394: error: Signature of "__delitem__" incompatible with supertype "typing.MutableSequence"  [override]django-stubs (https://github.com/typeddjango/django-stubs)- django-stubs/utils/datastructures.pyi:65: error: Signature of "get" incompatible with supertype "dict"  [override]+ django-stubs/utils/datastructures.pyi:65: error: Signature of "get" incompatible with supertype "builtins.dict"  [override]materialize (https://github.com/MaterializeInc/materialize)- misc/python/materialize/mz_version.py:50: error: Argument 1 of "parse" is incompatible with supertype "Version"; supertype defines the argument type as "str | bytes"  [override]+ misc/python/materialize/mz_version.py:50: error: Argument 1 of "parse" is incompatible with supertype "semver.version.Version"; supertype defines the argument type as "str | bytes"  [override]- misc/python/materialize/mzcompose/composition.py:89: error: Signature of "parse_known_args" incompatible with supertype "ArgumentParser"  [override]+ misc/python/materialize/mzcompose/composition.py:89: error: Signature of "parse_known_args" incompatible with supertype "argparse.ArgumentParser"  [override]- misc/python/materialize/cli/mzcompose.py:892: error: Signature of "parse_known_args" incompatible with supertype "ArgumentParser"  [override]+ misc/python/materialize/cli/mzcompose.py:892: error: Signature of "parse_known_args" incompatible with supertype "argparse.ArgumentParser"  [override]- misc/python/materialize/cli/mzcompose.py:904: error: Signature of "parse_known_args" incompatible with supertype "ArgumentParser"  [override]+ misc/python/materialize/cli/mzcompose.py:904: error: Signature of "parse_known_args" incompatible with supertype "argparse.ArgumentParser"  [override]- misc/python/materialize/version_consistency/version_consistency_test.py:84: error: Argument 3 of "create_sql_executors" is incompatible with supertype "OutputConsistencyTest"; supertype defines the argument type as "Connection[tuple[Any, ...]] | None"  [override]+ misc/python/materialize/version_consistency/version_consistency_test.py:84: error: Argument 3 of "create_sql_executors" is incompatible with supertype "materialize.output_consistency.output_consistency_test.OutputConsistencyTest"; supertype defines the argument type as "Connection[tuple[Any, ...]] | None"  [override]- misc/python/materialize/postgres_consistency/postgres_consistency_test.py:67: error: Argument 3 of "create_sql_executors" is incompatible with supertype "OutputConsistencyTest"; supertype defines the argument type as "Connection[tuple[Any, ...]] | None"  [override]+ misc/python/materialize/postgres_consistency/postgres_consistency_test.py:67: error: Argument 3 of "create_sql_executors" is incompatible with supertype "materialize.output_consistency.output_consistency_test.OutputConsistencyTest"; supertype defines the argument type as "Connection[tuple[Any, ...]] | None"  [override]- misc/python/materialize/feature_flag_consistency/feature_flag_consistency_test.py:117: error: Argument 3 of "create_sql_executors" is incompatible with supertype "OutputConsistencyTest"; supertype defines the argument type as "Connection[tuple[Any, ...]] | None"  [override]+ misc/python/materialize/feature_flag_consistency/feature_flag_consistency_test.py:117: error: Argument 3 of "create_sql_executors" is incompatible with supertype "materialize.output_consistency.output_consistency_test.OutputConsistencyTest"; supertype defines the argument type as "Connection[tuple[Any, ...]] | None"  [override]pandera (https://github.com/pandera-dev/pandera)- pandera/backends/pandas/hypotheses.py:123: error: Return type "Series[Any]" of "preprocess_table" incompatible with return type "DataFrame | dict[str, DataFrame]" in supertype "PandasCheckBackend"  [override]+ pandera/backends/pandas/hypotheses.py:123: error: Return type "Series[Any]" of "preprocess_table" incompatible with return type "DataFrame | dict[str, DataFrame]" in supertype "pandera.backends.pandas.checks.PandasCheckBackend"  [override]ibis (https://github.com/ibis-project/ibis)- ibis/util.py:623: error: Signature of "__coerce__" incompatible with supertype "Coercible"  [override]+ ibis/util.py:623: error: Signature of "__coerce__" incompatible with supertype "ibis.common.typing.Coercible"  [override]- ibis/common/deferred.py:45: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ibis/common/deferred.py:45: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ibis/common/patterns.py:223: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ibis/common/patterns.py:223: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ibis/common/patterns.py:652: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ibis/common/patterns.py:652: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ibis/common/patterns.py:929: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ibis/common/patterns.py:929: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ibis/expr/datatypes/core.py:588: error: Argument 1 of "__contains__" is incompatible with supertype "tuple"; supertype defines the argument type as "object"  [override]+ ibis/expr/datatypes/core.py:588: error: Argument 1 of "__contains__" is incompatible with supertype "builtins.tuple"; supertype defines the argument type as "object"  [override]- ibis/expr/datatypes/core.py:588: error: Argument 1 of "__contains__" is incompatible with supertype "Sequence"; supertype defines the argument type as "object"  [override]+ ibis/expr/datatypes/core.py:588: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Sequence"; supertype defines the argument type as "object"  [override]- ibis/expr/datatypes/core.py:588: error: Argument 1 of "__contains__" is incompatible with supertype "Container"; supertype defines the argument type as "object"  [override]+ ibis/expr/datatypes/core.py:588: error: Argument 1 of "__contains__" is incompatible with supertype "typing.Container"; supertype defines the argument type as "object"  [override]- ibis/expr/schema.py:58: error: Signature of "__coerce__" incompatible with supertype "Coercible"  [override]+ ibis/expr/schema.py:58: error: Signature of "__coerce__" incompatible with supertype "ibis.common.typing.Coercible"  [override]- ibis/expr/operations/core.py:45: error: Signature of "__coerce__" incompatible with supertype "Coercible"  [override]+ ibis/expr/operations/core.py:45: error: Signature of "__coerce__" incompatible with supertype "ibis.common.typing.Coercible"  [override]- ibis/expr/types/generic.py:1238: error: Return type "BooleanValue" of "__eq__" incompatible with return type "bool" in supertype "object"  [override]+ ibis/expr/types/generic.py:1238: error: Return type "BooleanValue" of "__eq__" incompatible with return type "bool" in supertype "builtins.object"  [override]- ibis/expr/types/generic.py:1238: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ibis/expr/types/generic.py:1238: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ibis/expr/types/generic.py:1245: error: Return type "BooleanValue" of "__ne__" incompatible with return type "bool" in supertype "object"  [override]+ ibis/expr/types/generic.py:1245: error: Return type "BooleanValue" of "__ne__" incompatible with return type "bool" in supertype "builtins.object"  [override]- ibis/expr/types/generic.py:1245: error: Argument 1 of "__ne__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ ibis/expr/types/generic.py:1245: error: Argument 1 of "__ne__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- ibis/backends/sql/__init__.py:108: error: Signature of "compile" incompatible with supertype "BaseBackend"  [override]+ ibis/backends/sql/__init__.py:108: error: Signature of "compile" incompatible with supertype "ibis.backends.BaseBackend"  [override]- ibis/backends/flink/datatypes.py:38: error: Signature of "to_ibis" incompatible with supertype "TypeMapper"  [override]+ ibis/backends/flink/datatypes.py:38: error: Signature of "to_ibis" incompatible with supertype "ibis.formats.TypeMapper"  [override]- ibis/backends/druid/__init__.py:207: error: Signature of "list_tables" incompatible with supertype "BaseBackend"  [override]+ ibis/backends/druid/__init__.py:207: error: Signature of "list_tables" incompatible with supertype "ibis.backends.BaseBackend"  [override]- ibis/backends/databricks/__init__.py:254: error: Argument 2 of "table" is incompatible with supertype "SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/databricks/__init__.py:254: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.sql.SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/databricks/__init__.py:254: error: Argument 2 of "table" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/databricks/__init__.py:254: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/athena/__init__.py:212: error: Argument 2 of "table" is incompatible with supertype "SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/athena/__init__.py:212: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.sql.SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/athena/__init__.py:212: error: Argument 2 of "table" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/athena/__init__.py:212: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/sqlite/__init__.py:162: error: Argument 2 of "list_tables" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/sqlite/__init__.py:162: error: Argument 2 of "list_tables" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/sqlite/__init__.py:299: error: Return type "Iterator[tuple[str, DataType]]" of "_get_schema_using_query" incompatible with return type "Schema" in supertype "SQLBackend"  [override]+ ibis/backends/sqlite/__init__.py:299: error: Return type "Iterator[tuple[str, DataType]]" of "_get_schema_using_query" incompatible with return type "Schema" in supertype "ibis.backends.sql.SQLBackend"  [override]- ibis/backends/sqlite/__init__.py:376: error: Return type "None" of "_register_python_udf" incompatible with return type "str" in supertype "SQLBackend"  [override]+ ibis/backends/sqlite/__init__.py:376: error: Return type "None" of "_register_python_udf" incompatible with return type "str" in supertype "ibis.backends.sql.SQLBackend"  [override]- ibis/backends/sqlite/__init__.py:537: error: Argument 2 of "drop_table" is incompatible with supertype "SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/sqlite/__init__.py:537: error: Argument 2 of "drop_table" is incompatible with supertype "ibis.backends.sql.SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/snowflake/__init__.py:464: error: Signature of "to_pandas_batches" incompatible with supertype "_FileIOHandler"  [override]+ ibis/backends/snowflake/__init__.py:464: error: Signature of "to_pandas_batches" incompatible with supertype "ibis.backends._FileIOHandler"  [override]- ibis/backends/risingwave/__init__.py:386: error: Argument 2 of "drop_table" is incompatible with supertype "SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/risingwave/__init__.py:386: error: Argument 2 of "drop_table" is incompatible with supertype "ibis.backends.sql.SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/postgres/__init__.py:695: error: Argument 2 of "drop_table" is incompatible with supertype "SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/postgres/__init__.py:695: error: Argument 2 of "drop_table" is incompatible with supertype "ibis.backends.sql.SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/mysql/__init__.py:157: error: Signature of "list_databases" incompatible with supertype "CanListDatabase"  [override]+ ibis/backends/mysql/__init__.py:157: error: Signature of "list_databases" incompatible with supertype "ibis.backends.CanListDatabase"  [override]- ibis/backends/mysql/__init__.py:222: error: Signature of "create_database" incompatible with supertype "CanCreateDatabase"  [override]+ ibis/backends/mysql/__init__.py:222: error: Signature of "create_database" incompatible with supertype "ibis.backends.CanCreateDatabase"  [override]- ibis/backends/duckdb/__init__.py:237: error: Argument 2 of "table" is incompatible with supertype "SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/duckdb/__init__.py:237: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.sql.SQLBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/duckdb/__init__.py:237: error: Argument 2 of "table" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/duckdb/__init__.py:237: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/duckdb/__init__.py:588: error: Signature of "read_csv" incompatible with supertype "_FileIOHandler"  [override]+ ibis/backends/duckdb/__init__.py:588: error: Signature of "read_csv" incompatible with supertype "ibis.backends._FileIOHandler"  [override]- ibis/backends/datafusion/__init__.py:346: error: Argument 2 of "list_tables" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/datafusion/__init__.py:346: error: Argument 2 of "list_tables" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/clickhouse/__init__.py:187: error: Signature of "list_databases" incompatible with supertype "CanListDatabase"  [override]+ ibis/backends/clickhouse/__init__.py:187: error: Signature of "list_databases" incompatible with supertype "ibis.backends.CanListDatabase"  [override]- ibis/backends/clickhouse/__init__.py:200: error: Argument 2 of "list_tables" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/clickhouse/__init__.py:200: error: Argument 2 of "list_tables" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/clickhouse/__init__.py:387: error: Signature of "execute" incompatible with supertype "SQLBackend"  [override]+ ibis/backends/clickhouse/__init__.py:387: error: Signature of "execute" incompatible with supertype "ibis.backends.sql.SQLBackend"  [override]- ibis/backends/clickhouse/__init__.py:387: error: Signature of "execute" incompatible with supertype "BaseBackend"  [override]+ ibis/backends/clickhouse/__init__.py:387: error: Signature of "execute" incompatible with supertype "ibis.backends.BaseBackend"  [override]- ibis/backends/clickhouse/__init__.py:543: error: Signature of "create_database" incompatible with supertype "CanCreateDatabase"  [override]+ ibis/backends/clickhouse/__init__.py:543: error: Signature of "create_database" incompatible with supertype "ibis.backends.CanCreateDatabase"  [override]- ibis/backends/pyspark/__init__.py:365: error: Argument 2 of "list_tables" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/pyspark/__init__.py:365: error: Argument 2 of "list_tables" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/pyspark/__init__.py:848: error: Argument 1 of "read_csv" is incompatible with supertype "_FileIOHandler"; supertype defines the argument type as "str | Path"  [override]+ ibis/backends/pyspark/__init__.py:848: error: Argument 1 of "read_csv" is incompatible with supertype "ibis.backends._FileIOHandler"; supertype defines the argument type as "str | Path"  [override]- ibis/backends/pyspark/__init__.py:891: error: Argument 1 of "read_json" is incompatible with supertype "_FileIOHandler"; supertype defines the argument type as "str | Path"  [override]+ ibis/backends/pyspark/__init__.py:891: error: Argument 1 of "read_json" is incompatible with supertype "ibis.backends._FileIOHandler"; supertype defines the argument type as "str | Path"  [override]- ibis/backends/polars/__init__.py:87: error: Argument 2 of "list_tables" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/polars/__init__.py:87: error: Argument 2 of "list_tables" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/polars/__init__.py:91: error: Argument 2 of "table" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]+ ibis/backends/polars/__init__.py:91: error: Argument 2 of "table" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "tuple[str, str] | str | None"  [override]- ibis/backends/polars/__init__.py:375: error: Signature of "drop_table" incompatible with supertype "BaseBackend"  [override]+ ibis/backends/polars/__init__.py:375: error: Signature of "drop_table" incompatible with supertype "ibis.backends.BaseBackend"  [override]- ibis/backends/polars/__init__.py:382: error: Signature of "drop_view" incompatible with supertype "BaseBackend"  [override]+ ibis/backends/polars/__init__.py:382: error: Signature of "drop_view" incompatible with supertype "ibis.backends.BaseBackend"  [override]- ibis/backends/polars/__init__.py:410: error: Argument 2 of "compile" is incompatible with supertype "BaseBackend"; supertype defines the argument type as "str | int | None"  [override]+ ibis/backends/polars/__init__.py:410: error: Argument 2 of "compile" is incompatible with supertype "ibis.backends.BaseBackend"; supertype defines the argument type as "str | int | None"  [override]- ibis/backends/polars/__init__.py:462: error: Signature of "execute" incompatible with supertype "BaseBackend"  [override]+ ibis/backends/polars/__init__.py:462: error: Signature of "execute" incompatible with supertype "ibis.backends.BaseBackend"  [override]- ibis/backends/impala/__init__.py:206: error: Signature of "list_databases" incompatible with supertype "CanListDatabase"  [override]... (truncated 33 lines) ...discord.py (https://github.com/Rapptz/discord.py)- discord/embeds.py:303: error: Argument 1 of "__eq__" is incompatible with supertype "object"; supertype defines the argument type as "object"  [override]+ discord/embeds.py:303: error: Argument 1 of "__eq__" is incompatible with supertype "builtins.object"; supertype defines the argument type as "object"  [override]- discord/shard.py:393: error: Return type "AutoShardedConnectionState[Client]" of "_get_state" incompatible with return type "ConnectionState[AutoShardedClient]" in supertype "Client"  [override]+ discord/shard.py:393: error: Return type "AutoShardedConnectionState[Client]" of "_get_state" incompatible with return type "ConnectionState[AutoShardedClient]" in supertype "discord.client.Client"  [override]- discord/interactions.py:1330: error: Signature of "edit" incompatible with supertype "Message"  [override]+ discord/interactions.py:1330: error: Signature of "edit" incompatible with supertype "discord.message.Message"  [override]- discord/channel.py:335: error: Argument 2 of "_update" is incompatible with supertype "GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/channel.py:335: error: Argument 2 of "_update" is incompatible with supertype "discord.abc.GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/channel.py:1062: error: Return type "Coroutine[Any, Any, VocalGuildChannel]" of "_get_channel" incompatible with return type "Coroutine[Any, Any, TextChannel | VoiceChannel | StageChannel | Thread | DMChannel | PartialMessageable | GroupChannel]" in supertype "Messageable"  [override]+ discord/channel.py:1062: error: Return type "Coroutine[Any, Any, VocalGuildChannel]" of "_get_channel" incompatible with return type "Coroutine[Any, Any, TextChannel | VoiceChannel | StageChannel | Thread | DMChannel | PartialMessageable | GroupChannel]" in supertype "discord.abc.Messageable"  [override]- discord/channel.py:1071: error: Argument 2 of "_update" is incompatible with supertype "GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/channel.py:1071: error: Argument 2 of "_update" is incompatible with supertype "discord.abc.GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/channel.py:1737: error: Argument 2 of "_update" is incompatible with supertype "GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/channel.py:1737: error: Argument 2 of "_update" is incompatible with supertype "discord.abc.GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/channel.py:2035: error: Argument 2 of "_update" is incompatible with supertype "GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/channel.py:2035: error: Argument 2 of "_update" is incompatible with supertype "discord.abc.GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/channel.py:2451: error: Argument 2 of "_update" is incompatible with supertype "GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/channel.py:2451: error: Argument 2 of "_update" is incompatible with supertype "discord.abc.GuildChannel"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/channel.py:2592: error: Signature of "clone" incompatible with supertype "GuildChannel"  [override]+ discord/channel.py:2592: error: Signature of "clone" incompatible with supertype "discord.abc.GuildChannel"  [override]- discord/webhook/sync.py:410: error: Signature of "edit" incompatible with supertype "Message"  [override]+ discord/webhook/sync.py:410: error: Signature of "edit" incompatible with supertype "discord.message.Message"  [override]- discord/webhook/sync.py:410: error: Signature of "edit" incompatible with supertype "PartialMessage"  [override]+ discord/webhook/sync.py:410: error: Signature of "edit" incompatible with supertype "discord.message.PartialMessage"  [override]- discord/webhook/sync.py:474: error: Return type "SyncWebhookMessage" of "add_files" incompatible with return type "Coroutine[Any, Any, Message]" in supertype "Message"  [override]+ discord/webhook/sync.py:474: error: Return type "SyncWebhookMessage" of "add_files" incompatible with return type "Coroutine[Any, Any, Message]" in supertype "discord.message.Message"  [override]- discord/webhook/sync.py:498: error: Return type "SyncWebhookMessage" of "remove_attachments" incompatible with return type "Coroutine[Any, Any, Message]" in supertype "Message"  [override]+ discord/webhook/sync.py:498: error: Return type "SyncWebhookMessage" of "remove_attachments" incompatible with return type "Coroutine[Any, Any, Message]" in supertype "discord.message.Message"  [override]- discord/webhook/sync.py:522: error: Return type "None" of "delete" incompatible with return type "Coroutine[Any, Any, None]" in supertype "PartialMessage"  [override]+ discord/webhook/sync.py:522: error: Return type "None" of "delete" incompatible with return type "Coroutine[Any, Any, None]" in supertype "discord.message.PartialMessage"  [override]- discord/webhook/async_.py:798: error: Signature of "edit" incompatible with supertype "Message"  [override]+ discord/webhook/async_.py:798: error: Signature of "edit" incompatible with supertype "discord.message.Message"  [override]- discord/webhook/async_.py:798: error: Signature of "edit" incompatible with supertype "PartialMessage"  [override]+ discord/webhook/async_.py:798: error: Signature of "edit" incompatible with supertype "discord.message.PartialMessage"  [override]- discord/ui/text_input.py:223: error: Return type "TextInput" of "to_component_dict" incompatible with return type "dict[str, Any]" in supertype "Item"  [override]+ discord/ui/text_input.py:223: error: Return type "TextInput" of "to_component_dict" incompatible with return type "dict[str, Any]" in supertype "discord.ui.item.Item"  [override]- discord/ui/text_input.py:226: error: Argument 1 of "_refresh_component" is incompatible with supertype "Item"; supertype defines the argument type as "Component"  [override]+ discord/ui/text_input.py:226: error: Argument 1 of "_refresh_component" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "Component"  [override]- discord/ui/text_input.py:229: error: Argument 2 of "_refresh_state" is incompatible with supertype "Item"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/ui/text_input.py:229: error: Argument 2 of "_refresh_state" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/ui/text_input.py:233: error: Argument 1 of "from_component" is incompatible with supertype "Item"; supertype defines the argument type as "Component"  [override]+ discord/ui/text_input.py:233: error: Argument 1 of "from_component" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "Component"  [override]- discord/ui/select.py:324: error: Return type "SelectMenu" of "to_component_dict" incompatible with return type "dict[str, Any]" in supertype "Item"  [override]+ discord/ui/select.py:324: error: Return type "SelectMenu" of "to_component_dict" incompatible with return type "dict[str, Any]" in supertype "discord.ui.item.Item"  [override]- discord/ui/select.py:327: error: Argument 1 of "_refresh_component" is incompatible with supertype "Item"; supertype defines the argument type as "Component"  [override]+ discord/ui/select.py:327: error: Argument 1 of "_refresh_component" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "Component"  [override]- discord/ui/select.py:330: error: Argument 2 of "_refresh_state" is incompatible with supertype "Item"; supertype defines the argument type as "dict[str, Any]"  [override]+ discord/ui/select.py:330: error: Argument 2 of "_refresh_state" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "dict[str, Any]"  [override]- discord/ui/select.py:348: error: Argument 1 of "from_component" is incompatible with supertype "Item"; supertype defines the argument type as "Component"  [override]+ discord/ui/select.py:348: error: Argument 1 of "from_component" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "Component"  [override]- discord/ui/modal.py:152: error: Signature of "on_error" incompatible with supertype "View"  [override]+ discord/ui/modal.py:152: error: Signature of "on_error" incompatible with supertype "discord.ui.view.View"  [override]- discord/ui/modal.py:169: error: Signature of "_refresh" incompatible with supertype "View"  [override]+ discord/ui/modal.py:169: error: Signature of "_refresh" incompatible with supertype "discord.ui.view.View"  [override]- discord/ui/modal.py:180: error: Argument 1 of "_scheduled_task" is incompatible with supertype "View"; supertype defines the argument type as "Item[Any]"  [override]+ discord/ui/modal.py:180: error: Argument 1 of "_scheduled_task" is incompatible with supertype "discord.ui.view.View"; supertype defines the argument type as "Item[Any]"  [override]- discord/ui/modal.py:180: error: Argument 2 of "_scheduled_task" is incompatible with supertype "View"; supertype defines the argument type as "Interaction[Client]"  [override]+ discord/ui/modal.py:180: error: Argument 2 of "_scheduled_task" is incompatible with supertype "discord.ui.view.View"; supertype defines the argument type as "Interaction[Client]"  [override]- discord/ui/button.py:235: error: Argument 1 of "from_component" is incompatible with supertype "Item"; supertype defines the argument type as "Component"  [override]+ discord/ui/button.py:235: error: Argument 1 of "from_component" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "Component"  [override]- discord/ui/button.py:251: error: Return type "ButtonComponent" of "to_component_dict" incompatible with return type "dict[str, Any]" in supertype "Item"  [override]+ discord/ui/button.py:251: error: Return type "ButtonComponent" of "to_component_dict" incompatible with return type "dict[str, Any]" in supertype "discord.ui.item.Item"  [override]- discord/ui/button.py:262: error: Argument 1 of "_refresh_component" is incompatible with supertype "Item"; supertype defines the argument type as "Component"  [override]+ discord/ui/button.py:262: error: Argument 1 of "_refresh_component" is incompatible with supertype "discord.ui.item.Item"; supertype defines the argument type as "Component"  [override]- discord/ext/commands/converter.py:1119: error: Return type "Greedy[T]" of "__class_getitem__" incompatible with return type "GenericAlias" in supertype "list"  [override]+ discord/ext/commands/converter.py:1119: error: Return type "Greedy[T]" of "__class_getitem__" incompatible with return type "GenericAlias" in supertype "builtins.list"  [override]- discord/ext/commands/parameters.py:112: error: Signature of "replace" incompatible with supertype "Parameter"  [override]+ discord/ext/commands/parameters.py:112: error: Signature of "replace" incompatible with supertype "inspect.Parameter"  [override]- discord/ext/commands/context.py:410: error: Return type "Coroutine[Any, Any, Messageable]" of "_get_channel" incompatible with return type "Coroutine[Any, Any, TextChannel | VoiceChannel | StageChannel | Thread | DMChannel | PartialMessageable | GroupChannel]" in supertype "Messageable"  [override]+ discord/ext/commands/context.py:410: error: Return type "Coroutine[Any, Any, Messageable]" of "_get_channel" incompatible with return type "Coroutine[Any, Any, TextChannel | VoiceChannel | StageChannel | Thread | DMChannel | PartialMessageable | GroupChannel]" in supertype "discord.abc.Messageable"  [override]- discord/ext/commands/context.py:754: error: Signature of "typing" incompatible with supertype "Messageable"  [override]+ discord/ext/commands/context.py:754: error: Signature of "typing" incompatible with supertype "discord.abc.Messageable"  [override]- discord/ext/commands/hybrid.py:777: error: Argument 1 of "add_command" is incompatible with supertype "GroupMixin"; supertype defines the argument type as "Command[CogT, [VarArg(Any), KwArg(Any)], Any]"  [override]+ discord/ext/commands/hybrid.py:777: error: Argument 1 of "add_command" is incompatible with supertype "discord.ext.commands.core.GroupMixin"; supertype defines the argument type as "Command[CogT, [VarArg(Any), KwArg(Any)], Any]"  [override]- discord/ext/commands/hybrid.py:823: error: Signature of "command" incompatible with supertype "GroupMixin"  [override]+ discord/ext/commands/hybrid.py:823: error: Signature of "command" incompatible with supertype "discord.ext.commands.core.GroupMixin"  [override]... (truncated 78 lines) ...```

@sterliakov
Copy link
Collaborator

Note that you can runpytest --update-data to fix the tests automatically and only check the results manually, that should be easier than patching multiple files by hand.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Show more context about the base class on incompatible override
2 participants
@east825@sterliakov

[8]ページ先頭

©2009-2025 Movatter.jp