forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
narrow on initial assignment #4
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hauntsaninja
wants to merge
4
commits into
master
Choose a base branch
from
narrow-2008
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment has been minimized.
This comment has been minimized.
Owner
Author
|
if the type annotation is Any we should listen |
e8f5c79 to
d8974e8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d8974e8 to
503a968
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Diff from mypy_primer, showing the effect of this PR on open source code: beartype (https://github.com/beartype/beartype)
+ beartype/bite/kind/infercallable.py:460: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/bite/kind/infercallable.py:497: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/bite/kind/infercallable.py:530: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/claw/_ast/_kind/clawastimport.py:733: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/claw/_package/clawpkgtrie.py:567: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/claw/_package/clawpkgtrie.py:771: error: Unused "type: ignore" comment [unused-ignore]
CPython (Argument Clinic) (https://github.com/python/cpython)
+ Tools/clinic/libclinic/clanguage.py:292: error: Non-overlapping equality check (left operand type: "int", right operand type: "Literal[Sentinels.unspecified]") [comparison-overlap]
hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/core/devicetools.py:4029: error: Incompatible types in assignment (expression has type "object", variable has type "dict[Device, WeakValueDictionary[int, Devices[Device]]] | dict[str, Device] | dict[str, FusedVariable]") [assignment]
+ hydpy/core/devicetools.py:4030: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[Device, WeakValueDictionary[int, Devices[Device]]] | dict[str, Device] | dict[str, FusedVariable]"; expected "SupportsKeysAndGetItem[Device, WeakValueDictionary[int, Devices[Device]]]" [arg-type]
+ hydpy/core/devicetools.py:4030: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[Device, WeakValueDictionary[int, Devices[Device]]] | dict[str, Device] | dict[str, FusedVariable]"; expected "SupportsKeysAndGetItem[str, Device]" [arg-type]
+ hydpy/core/devicetools.py:4030: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[Device, WeakValueDictionary[int, Devices[Device]]] | dict[str, Device] | dict[str, FusedVariable]"; expected "SupportsKeysAndGetItem[str, FusedVariable]" [arg-type]
psycopg (https://github.com/psycopg/psycopg)
+ tests/test_connection_async.py:778: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:781: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:782: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection_async.py:785: error: "object" has no attribute "guc" [attr-defined]
+ tests/test_connection_async.py:793: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:796: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:797: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection_async.py:801: error: "object" has no attribute "guc" [attr-defined]
+ tests/test_connection.py:777: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:780: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:781: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection.py:784: error: "object" has no attribute "guc" [attr-defined]
+ tests/test_connection.py:792: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:795: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:796: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection.py:799: error: "object" has no attribute "guc" [attr-defined]
spark (https://github.com/apache/spark)
+ python/pyspark/streaming/dstream.py:916: error: Too many arguments [call-arg]
+ python/pyspark/ml/pipeline.py:440: error: Need type annotation for "stages" (hint: "stages: list[<type>] = ...") [var-annotated]
+ python/pyspark/ml/tuning.py:260: error: Need type annotation for "epms" (hint: "epms: list[<type>] = ...") [var-annotated]
tornado (https://github.com/tornadoweb/tornado)
+ tornado/options.py:580: error: No overload variant of "range" matches argument types "object", "int" [call-overload]
+ tornado/options.py:580: note: Possible overload variants:
+ tornado/options.py:580: note: def __new__(cls, SupportsIndex, /) -> range
+ tornado/options.py:580: note: def __new__(cls, SupportsIndex, SupportsIndex, SupportsIndex = ..., /) -> range
+ tornado/options.py:580: error: Unsupported operand types for + ("object" and "int") [operator]
+ tornado/http1connection.py:621: error: Redundant cast to "int" [redundant-cast]
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/utilities/collections.py:719: error: Redundant cast to "NestedDict[Any]" [redundant-cast]
- src/prefect/blocks/core.py:86: error: Argument 4 to <tuple> has incompatible type "*tuple[object, ...]"; expected "type" [arg-type]
- src/prefect/tasks.py:1724: error: Argument "validated_state" to "emit_task_run_state_change_event" has incompatible type "State[Any] | None"; expected "State[Any]" [arg-type]
- src/prefect/engine.py:122: error: Argument "error_logger" to "run_flow" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type]
+ src/prefect/engine.py:122: error: Argument "error_logger" to "run_flow" has incompatible type "PrefectLogAdapter"; expected "Logger | None" [arg-type]
- src/prefect/engine.py:124: error: Argument "error_logger" to "run_flow" has incompatible type "LoggerAdapter[Logger]"; expected "Logger | None" [arg-type]
+ src/prefect/engine.py:124: error: Argument "error_logger" to "run_flow" has incompatible type "PrefectLogAdapter"; expected "Logger | None" [arg-type]
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/v1/config.py:133: error: Argument 2 to "setdefault" of "MutableMapping" has incompatible type "int"; expected "str" [arg-type]
+ pydantic/v1/config.py:135: error: Unsupported operand types for <= ("str" and "int") [operator]
+ pydantic/v1/config.py:135: note: Left operand is of type "Any | str | int"
+ pydantic/v1/config.py:139: error: No overload variant of "update" of "MutableMapping" matches argument types "str", "int" [call-overload]
+ pydantic/v1/config.py:139: note: Possible overload variants:
+ pydantic/v1/config.py:139: note: def update(self, SupportsKeysAndGetItem[str, str], /) -> None
+ pydantic/v1/config.py:139: note: def update(self, SupportsKeysAndGetItem[str, str], /, **kwargs: str) -> None
+ pydantic/v1/config.py:139: note: def update(self, Iterable[tuple[str, str]], /) -> None
+ pydantic/v1/config.py:139: note: def update(self, Iterable[tuple[str, str]], /, **kwargs: str) -> None
+ pydantic/v1/config.py:139: note: def update(self, **kwargs: str) -> None
+ pydantic/_internal/_typing_extra.py:346: error: Invalid index type "str" for "dict[Never, Never]"; expected type "Never" [index]
+ pydantic/_internal/_typing_extra.py:346: error: Incompatible types in assignment (expression has type "tuple[Any, bool]", target has type "Never") [assignment]
+ pydantic/_internal/_typing_extra.py:348: error: Invalid index type "str" for "dict[Never, Never]"; expected type "Never" [index]
+ pydantic/_internal/_typing_extra.py:348: error: Incompatible types in assignment (expression has type "tuple[Any, bool]", target has type "Never") [assignment]
+ pydantic/_internal/_typing_extra.py:350: error: Invalid index type "str" for "dict[Never, Never]"; expected type "Never" [index]
+ pydantic/_internal/_typing_extra.py:350: error: Incompatible types in assignment (expression has type "tuple[Any, bool]", target has type "Never") [assignment]
aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/web_fileresponse.py:330:21: error: Statement is unreachable [unreachable]
+ aiohttp/web_fileresponse.py:330:21: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-unreachable for more info
+ aiohttp/web_fileresponse.py:345:36: error: If condition is always true [redundant-expr]
+ aiohttp/web_fileresponse.py:345:36: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-redundant-expr for more info
+ aiohttp/web_urldispatcher.py:920:9: error: Returning Any from function declared to return "StreamResponse" [no-any-return]
colour (https://github.com/colour-science/colour)
- colour/hints/__init__.py:668: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
- colour/hints/__init__.py:670: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
- colour/hints/__init__.py:679: error: Argument 1 to "number_or_arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
- colour/hints/__init__.py:681: error: Argument 1 to "number_or_arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
- colour/hints/__init__.py:690: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
- colour/hints/__init__.py:692: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | str | _NestedSequence[complex | bytes | str]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]" [arg-type]
mypy (https://github.com/python/mypy)
+ mypy/types.py:2561: error: List item 0 has incompatible type "str | None"; expected "None" [list-item]
+ mypy/types.py:2561: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-list-item for more info
+ mypy/types.py:4192: error: Need type annotation for "old_index" [var-annotated]
+ mypy/types.py:4192: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-var-annotated for more info
+ mypy/plugins/attrs.py:768: error: Redundant call to get_proper_type() [misc]
+ mypy/semanal.py:7111: error: Argument 2 to "isinstance" has incompatible type "object"; expected "_ClassInfo" [arg-type]
+ mypy/semanal.py:7112: error: "object" has no attribute "type" [attr-defined]
+ mypy/semanal.py:7124: error: "object" has no attribute "type" [attr-defined]
+ mypy/test/testfinegrained.py:318: error: Unsupported left operand type for + ("object") [operator]
+ mypy/test/testfinegrained.py:318: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-operator for more info
+ mypy/test/testfinegrained.py:321: error: Item "object" of "object | Any" has no attribute "replace" [union-attr]
+ mypy/test/testfinegrained.py:321: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-union-attr for more info
+ mypy/test/testfinegrained.py:324: error: Item "object" of "object | Any" has no attribute "strip" [union-attr]
+ mypy/test/testfinegrained.py:356: error: Unsupported left operand type for + ("object") [operator]
+ mypy/test/testfinegrained.py:357: error: Item "object" of "object | Any" has no attribute "strip" [union-attr]
meson (https://github.com/mesonbuild/meson)
+ mesonbuild/compilers/mixins/clike.py:415:13: error: Result type of + incompatible in assignment [misc]
+ mesonbuild/compilers/mixins/clike.py:425:9: error: Result type of + incompatible in assignment [misc]
+ mesonbuild/compilers/mixins/clike.py:427:9: error: Result type of + incompatible in assignment [misc]
+ mesonbuild/dependencies/detect.py:188:16: error: Incompatible return value type (got "list[partial[ExternalDependency]] | list[Callable[[], ExternalDependency]]", expected "list[Callable[[], ExternalDependency]]") [return-value]
+ mesonbuild/ast/interpreter.py:731:28: error: Argument 1 to "src_to_abs" has incompatible type "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]"; expected "str | IntrospectionFile | UnknownValue" [arg-type]
+ mesonbuild/rewriter.py:774:83: error: Item "int" of "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]" has no attribute "to_abs_path" [union-attr]
+ mesonbuild/rewriter.py:774:83: error: Item "dict[str, TYPE_elementary]" of "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]" has no attribute "to_abs_path" [union-attr]
+ mesonbuild/rewriter.py:774:83: error: Item "HoldableObject" of "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]" has no attribute "to_abs_path" [union-attr]
+ mesonbuild/rewriter.py:774:83: error: Item "MesonInterpreterObject" of "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]" has no attribute "to_abs_path" [union-attr]
+ mesonbuild/rewriter.py:774:83: error: Item "Sequence[TYPE_var]" of "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]" has no attribute "to_abs_path" [union-attr]
+ mesonbuild/rewriter.py:774:83: error: Item "dict[str, TYPE_var]" of "int | dict[str, TYPE_elementary] | HoldableObject | MesonInterpreterObject | Sequence[TYPE_var] | dict[str, TYPE_var]" has no attribute "to_abs_path" [union-attr]
zulip (https://github.com/zulip/zulip)
+ tools/lib/pretty_print.py:93: error: "None" has no attribute "indent" [attr-defined]
+ tools/lib/pretty_print.py:94: error: "None" has no attribute "parent_token" [attr-defined]
+ zproject/configured_settings.py:25: error: Cannot determine type of "LDAP_APPEND_DOMAIN" [has-type]
+ zproject/configured_settings.py:25: error: Cannot determine type of "AUTH_LDAP_USER_SEARCH" [has-type]
+ zproject/configured_settings.py:25: error: Cannot determine type of "AUTH_LDAP_REVERSE_EMAIL_SEARCH" [has-type]
+ zproject/configured_settings.py:25: error: Cannot determine type of "AUTH_LDAP_USER_ATTR_MAP" [has-type]
- zerver/lib/logging_util.py:257: error: "AbstractBaseUser" has no attribute "delivery_email" [attr-defined]
- zerver/lib/logging_util.py:257: error: "AbstractBaseUser" has no attribute "realm" [attr-defined]
+ zerver/views/documentation.py:204: error: Incompatible types in assignment (expression has type "bool", target has type "str") [assignment]
+ zerver/views/documentation.py:217: error: Incompatible types in assignment (expression has type "bool", target has type "str") [assignment]
+ zerver/views/documentation.py:276: error: Incompatible types in assignment (expression has type "dict[str, Any]", target has type "str") [assignment]
+ zerver/views/documentation.py:278: error: Unsupported target for indexed assignment ("str") [index]
+ zerver/views/documentation.py:311: error: Argument 1 to "add_google_analytics_context" has incompatible type "dict[str, str]"; expected "dict[str, object]" [arg-type]
+ zerver/views/documentation.py:311: note: "dict" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
+ zerver/views/documentation.py:311: note: Consider using "Mapping" instead, which is covariant in the value type
+ zproject/computed_settings.py:166: error: Need type annotation for "service" [var-annotated]
starlette (https://github.com/encode/starlette)
+ starlette/requests.py:189: error: Returning Any from function declared to return "URL" [no-any-return]
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/clients.py:2659: error: Argument 1 to "get" of "dict" has incompatible type "str | Path"; expected "str" [arg-type]
+ tanjun/clients.py:2659: error: Argument 1 to "get" of "dict" has incompatible type "str | Path"; expected "Path" [arg-type]
+ tanjun/clients.py:2668: error: Argument 1 to "__delitem__" of "dict" has incompatible type "str | Path"; expected "str" [arg-type]
+ tanjun/clients.py:2668: error: Argument 1 to "__delitem__" of "dict" has incompatible type "str | Path"; expected "Path" [arg-type]
+ tanjun/clients.py:2720: error: Invalid index type "str | Path" for "dict"; expected type "str" [index]
+ tanjun/clients.py:2720: error: Invalid index type "str | Path" for "dict"; expected type "Path" [index]
schemathesis (https://github.com/schemathesis/schemathesis)
+ src/schemathesis/pytest/lazy.py: note: In function "parametrize":
+ src/schemathesis/pytest/lazy.py:208: error: Statement is unreachable [unreachable]
core (https://github.com/home-assistant/core)
+ homeassistant/util/variance.py:41: error: Right operand of "and" is never evaluated [unreachable]
+ homeassistant/util/variance.py:42: error: Statement is unreachable [unreachable]
+ homeassistant/setup.py:448: error: Statement is unreachable [unreachable]
+ homeassistant/helpers/entity_platform.py:883: error: Statement is unreachable [unreachable]
+ homeassistant/components/group/sensor.py:705: error: Incompatible return value type (got "set[type[StrEnum] | str | None]", expected "set[str | None]") [return-value]
+ homeassistant/components/device_tracker/config_entry.py:56: error: Returning Any from function declared to return "bool" [no-any-return]
+ homeassistant/components/recorder/statistics.py:1846: error: Argument 1 has incompatible type "float | Any | None"; expected "float" [arg-type]
+ homeassistant/components/intent/timers.py:484: error: Returning Any from function declared to return "bool" [no-any-return]
+ homeassistant/components/cloud/google_config.py:293: error: Returning Any from function declared to return "bool" [no-any-return]
+ homeassistant/components/duckdns/__init__.py:234: error: Statement is unreachable [unreachable]
+ homeassistant/components/airvisual_pro/__init__.py:97: error: Statement is unreachable [unreachable]
+ homeassistant/components/systemmonitor/coordinator.py:174: error: Argument "load" to "SensorData" has incompatible type "tuple[float, float, float] | tuple[None, None, None]"; expected "tuple[float, float, float]" [arg-type]
+ homeassistant/components/sonos/speaker.py:214: error: Need type annotation for "target" [var-annotated]
+ homeassistant/components/imap/__init__.py:254: error: Item "str" of "Message[str, str] | Any | str" has no attribute "get_payload" [union-attr]
+ homeassistant/components/imap/__init__.py:264: error: Incompatible return value type (got "Message[str, str] | Any | str", expected "Message[str, str]") [return-value]
+ homeassistant/components/homekit/type_cameras.py:306: error: Returning Any from function declared to return "str | None" [no-any-return]
+ homeassistant/components/asuswrt/sensor.py:295: error: Returning Any from function declared to return "float | int | str | None" [no-any-return]
+ homeassistant/components/utility_meter/sensor.py:524: error: No overload variant of "get" of "dict" matches argument type "str" [call-overload]
+ homeassistant/components/utility_meter/sensor.py:524: note: Possible overload variants:
+ homeassistant/components/utility_meter/sensor.py:524: note: def get(self, Never, None = ..., /) -> None
+ homeassistant/components/utility_meter/sensor.py:524: note: def get(self, Never, Never, /) -> Never
+ homeassistant/components/utility_meter/sensor.py:524: note: def [_T] get(self, Never, _T, /) -> _T
+ homeassistant/components/utility_meter/sensor.py:525: error: No overload variant of "get" of "dict" matches argument type "str" [call-overload]
+ homeassistant/components/utility_meter/sensor.py:525: note: Possible overload variants:
+ homeassistant/components/utility_meter/sensor.py:525: note: def get(self, Never, None = ..., /) -> None
+ homeassistant/components/utility_meter/sensor.py:525: note: def get(self, Never, Never, /) -> Never
+ homeassistant/components/utility_meter/sensor.py:525: note: def [_T] get(self, Never, _T, /) -> _T
+ homeassistant/components/sonos/__init__.py:374: error: Incompatible types in assignment (expression has type "SonosAlarms | SonosFavorites", target has type "SonosAlarms") [assignment]
+ homeassistant/components/sonos/__init__.py:374: error: Incompatible types in assignment (expression has type "SonosAlarms | SonosFavorites", target has type "SonosFavorites") [assignment]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/config/__init__.py:1193: error: Returning Any from function declared to return "TerminalWriter" [no-any-return]
+ src/_pytest/nodes.py:492: error: Returning Any from function declared to return "tuple[str | Path, int | None]" [no-any-return]
+ src/_pytest/python.py:742: error: Returning Any from function declared to return "object | None" [no-any-return]
+ src/_pytest/python.py:855: error: Returning Any from function declared to return "bool" [no-any-return]
+ src/_pytest/python.py:862: error: Returning Any from function declared to return "bool" [no-any-return]
+ testing/test_reports.py:308: error: Incompatible types in assignment (expression has type "CollectReport", variable has type "TestReport") [assignment]
+ testing/test_python_path.py:128: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:149: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:150: error: Unused "type: ignore" comment [unused-ignore]
+ testing/test_compat.py:154: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:184: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:185: error: Unused "type: ignore" comment [unused-ignore]
+ testing/test_compat.py:189: error: Statement is unreachable [unreachable]
sympy (https://github.com/sympy/sympy)
+ sympy/codegen/ast.py:853: error: Incompatible types in assignment (expression has type "tuple[str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:897: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:950: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1019: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1154: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Type" defined the type as "tuple[str]") [assignment]
+ sympy/codegen/ast.py:1237: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str]", base class "Type" defined the type as "tuple[str]") [assignment]
+ sympy/codegen/ast.py:1393: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1461: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str]", base class "Node" defined the type as "tuple[str]") [assignment]
+ sympy/codegen/ast.py:1602: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1633: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1664: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1685: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1717: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1743: error: Incompatible types in assignment (expression has type "tuple[str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1777: error: Incompatible types in assignment (expression has type "tuple[str, ...]", base class "Node" defined the type as "tuple[str]") [assignment]
+ sympy/codegen/ast.py:1866: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1889: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1932: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1940: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/pynodes.py:11: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:50: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:71: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:97: error: Incompatible types in assignment (expression has type "tuple[str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:122: error: Incompatible types in assignment (expression has type "tuple[str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:154: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str]", base class "Node" defined the type as "tuple[str]") [assignment]
+ sympy/codegen/fnodes.py:177: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:209: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:234: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:253: error: Incompatible types in assignment (expression has type "tuple[str, str, str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:577: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:604: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:674: error: Incompatible types in assignment (expression has type "tuple[str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:681: error: Incompatible types in assignment (expression has type "tuple[str, str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/cnodes.py:61: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Node" defined the type as "tuple[str]") [assignment]
+ sympy/codegen/cnodes.py:75: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/cnodes.py:145: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Node" defined the type as "tuple[str]") [assignment]
+ sympy/polys/series/ringpython.py:629: error: Incompatible types in assignment (expression has type "tuple[list[Ef], int | None]", variable has type "tuple[list[Ef], int]") [assignment]
+ sympy/codegen/numpy_nodes.py:127: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/numpy_nodes.py:143: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/matrix_nodes.py:60: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/cxxnodes.py:9: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/structured_configs/_implementations.py:2283: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/structured_configs/_implementations.py:2293: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/structured_configs/_implementations.py:2296: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/structured_configs/_implementations.py:2303: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/wrapper/_implementations.py:446: error: Argument 3 has incompatible type "**dict[str, DictConfig]"; expected "P.kwargs" [arg-type]
- src/hydra_zen/wrapper/_implementations.py:447: error: Unused "type: ignore" comment [unused-ignore]
rich (https://github.com/Textualize/rich)
+ rich/_fileno.py:18: error: Returning Any from function declared to return "int | None" [no-any-return]
+ rich/measure.py:115: error: Returning Any from function declared to return "Measurement" [no-any-return]
pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/generic.py:3554: error: Argument 1 to "__call__" of "EngFormatter" has incompatible type "float | complex"; expected "float" [arg-type]
discord.py (https://github.com/Rapptz/discord.py)
- discord/scheduled_event.py:490: error: Incompatible types in assignment (expression has type "str | None", target has type "str") [assignment]
- discord/appinfo.py:412: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:415: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:418: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:420: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:462: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:464: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:466: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:482: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:484: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:486: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/invite.py:470: error: Item "Object" of "Guild | Object" has no attribute "get_channel" [union-attr]
- discord/webhook/async_.py:578: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:582: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:584: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:588: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:590: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:594: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:603: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:606: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:610: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:612: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:614: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:631: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/webhook/async_.py:634: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/internal/coverage/instrumentation_py3_12.py:228: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:228: error: Incompatible types in assignment (expression has type "tuple[None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
- ddtrace/internal/coverage/instrumentation_py3_12.py:230: error: List item 0 has incompatible type "str | None"; expected "str" [list-item]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:230: error: List item 0 has incompatible type "None"; expected "str" [list-item]
- ddtrace/internal/coverage/instrumentation_py3_12.py:233: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str | None]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:233: error: Incompatible types in assignment (expression has type "tuple[None, tuple[None]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
- ddtrace/internal/coverage/instrumentation_py3_12.py:241: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:241: error: Incompatible types in assignment (expression has type "tuple[None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
- ddtrace/internal/coverage/instrumentation_py3_12.py:246: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:246: error: Incompatible types in assignment (expression has type "tuple[None, tuple[str]]", target has type "tuple[str, tuple[str, ...]]") [assignment]
+ ddtrace/appsec/_iast/_taint_tracking/aspects.py:764: error: Incompatible types in assignment (expression has type "list[str] | list[bytes] | list[bytearray] | list[bytes | str]", variable has type "list[str | bytes | bytearray | None]") [assignment]
trio (https://github.com/python-trio/trio)
+ src/trio/testing/_fake_net.py:89: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2438: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2441: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2507: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2508: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2509: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2540: error: Unused "type: ignore" comment [unused-ignore]
pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/utils.py:1337: error: Returning Any from function declared to return "str | None" [no-any-return]
+ pylint/checkers/classes/class_checker.py:256: error: Call to untyped function (unknown) in typed context [no-untyped-call]
dulwich (https://github.com/dulwich/dulwich)
+ dulwich/objects.py:1790: error: Need type annotation for "_author" [var-annotated]
+ dulwich/objects.py:1790: error: Need type annotation for "_author_time" [var-annotated]
+ dulwich/objects.py:1790: error: Need type annotation for "_author_timezone" [var-annotated]
+ dulwich/objects.py:1795: error: Need type annotation for "_committer" [var-annotated]
+ dulwich/objects.py:1795: error: Need type annotation for "_commit_time" [var-annotated]
+ dulwich/objects.py:1795: error: Need type annotation for "_commit_timezone" [var-annotated]
+ dulwich/pack.py:3842: error: Argument 1 to "append" of "list" has incompatible type "tuple[int | None, int, list[bytes] | bytes]"; expected "tuple[int, int, list[bytes] | bytes]" [arg-type]
jax (https://github.com/google/jax)
+ jax/_src/export/shape_poly.py:2139: error: Unused "type: ignore" comment [unused-ignore]
+ jax/_src/numpy/index_tricks.py:168: error: Argument 1 to "__iadd__" of "list" has incompatible type "list[int]"; expected "Iterable[str]" [arg-type]
pyodide (https://github.com/pyodide/pyodide)
- src/py/pyodide/code.py:45: error: Unsupported operand types for + ("None" and "int") [operator]
- src/py/pyodide/code.py:45: note: Left operand is of type "int | None"
bidict (https://github.com/jab/bidict)
+ bidict/_base.py: note: In member "inverse" of class "BidictBase":
+ bidict/_base.py:186:13: error: Returning Any from function declared to return "BidictBase[VT, KT]" [no-any-return]
poetry (https://github.com/python-poetry/poetry)
+ src/poetry/publishing/uploader.py:191: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, tuple[str, BufferedReader[_BufferedReaderStream], str]]"; expected "tuple[str, str]" [arg-type]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ sklearn/ensemble/tests/test_forest.py:118: error: Argument 1 to "update" of "MutableMapping" has incompatible type "dict[str, type[ForestRegressor]]"; expected "SupportsKeysAndGetItem[str, type[ForestClassifier]]" [arg-type]
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/aglib/elf.py: note: In function "get_ehdr":
+ pwndbg/aglib/elf.py:348: error: Incompatible return value type (got "tuple[int, <typing special form>]", expected "tuple[int | None, Elf32_Ehdr | Elf64_Ehdr | None]") [return-value]
+ pwndbg/commands/context.py: note: In function "get_regs":
+ pwndbg/commands/context.py:1015: error: No overload variant of "__add__" of "list" matches argument type "tuple[str, ...]" [operator]
+ pwndbg/commands/context.py:1015: note: Possible overload variants:
+ pwndbg/commands/context.py:1015: note: def __add__(self, list[Any], /) -> list[Any]
+ pwndbg/commands/context.py:1015: note: def [_S] __add__(self, list[_S], /) -> list[_S | Any]
+ pwndbg/commands/context.py:1015: note: def __add__(self, list[str], /) -> list[str]
+ pwndbg/commands/context.py:1015: note: def [_S] __add__(self, list[_S], /) -> list[_S | str]
+ pwndbg/commands/context.py:1015: note: Left operand is of type "list[Any] | list[str]"
dedupe (https://github.com/dedupeio/dedupe)
+ dedupe/branch_and_bound.py:82: error: Argument 1 to "append" of "list" has incompatible type "tuple[dict[Any, frozenset[int]], tuple[Predicate]]"; expected "tuple[dict[Predicate, frozenset[int]], tuple[()]]" [arg-type]
+ dedupe/training.py:319: error: Argument 1 to "len" has incompatible type "frozenset[tuple[int, int] | tuple[str, str]] | InfiniteSet"; expected "Sized" [arg-type]
+ dedupe/training.py:328: error: Incompatible return value type (got "dict[Predicate, frozenset[int] | InfiniteSet]", expected "dict[Predicate, frozenset[int]]") [return-value]
archinstall (https://github.com/archlinux/archinstall)
+ archinstall/tui/menu_item.py:286: error: "first_item" has type "MenuItem" which does not implement __bool__ or __len__ so it could always be true in boolean context [truthy-bool]
+ archinstall/tui/menu_item.py:298: error: "last_item" has type "MenuItem" which does not implement __bool__ or __len__ so it could always be true in boolean context [truthy-bool]
stone (https://github.com/dropbox/stone)
+ stone/backends/python_rsrc/stone_serializers.py:167: error: Argument 1 to "encode_list" of "StoneSerializerBase" has incompatible type "stone.backends.python_rsrc.stone_validators.List | Map | Nullable | Primitive | Struct | stone.backends.python_rsrc.stone_validators.Union"; expected "stone.backends.python_rsrc.stone_validators.List" [arg-type]
+ stone/backends/python_rsrc/stone_serializers.py:167: error: Argument 1 to "encode_map" of "StoneSerializerBase" has incompatible type "stone.backends.python_rsrc.stone_validators.List | Map | Nullable | Primitive | Struct | stone.backends.python_rsrc.stone_validators.Union"; expected "Map" [arg-type]
+ stone/backends/python_rsrc/stone_serializers.py:167: error: Argument 1 to "encode_nullable" of "StoneSerializerBase" has incompatible type "stone.backends.python_rsrc.stone_validators.List | Map | Nullable | Primitive | Struct | stone.backends.python_rsrc.stone_validators.Union"; expected "Nullable" [arg-type]
+ stone/backends/python_rsrc/stone_serializers.py:167: error: Argument 1 to "encode_primitive" of "StoneSerializerBase" has incompatible type "stone.backends.python_rsrc.stone_validators.List | Map | Nullable | Primitive | Struct | stone.backends.python_rsrc.stone_validators.Union"; expected "Primitive" [arg-type]
+ stone/backends/python_rsrc/stone_serializers.py:167: error: Argument 1 to "encode_struct_tree" of "StoneSerializerBase" has incompatible type "stone.backends.python_rsrc.stone_validators.List | Map | Nullable | Primitive | Struct | stone.backends.python_rsrc.stone_validators.Union"; expected "StructTree" [arg-type]
+ stone/backends/python_rsrc/stone_serializers.py:167: error: Argument 1 to "encode_union" of "StoneSerializerBase" has incompatible type "stone.backends.python_rsrc.stone_validators.List | Map | Nullable | Primitive | Struct | stone.backends.python_rsrc.stone_validators.Union"; expected "stone.backends.python_rsrc.stone_validators.Union" [arg-type]
rotki (https://github.com/rotki/rotki)
+ rotkehlchen/db/upgrades/v34_v35.py:55: error: Unused "type: ignore" comment [unused-ignore]
+ rotkehlchen/db/upgrades/v34_v35.py:56: error: Unused "type: ignore" comment [unused-ignore]
+ rotkehlchen/db/upgrades/v34_v35.py:59: error: Unused "type: ignore" comment [unused-ignore]
+ rotkehlchen/externalapis/cryptocompare.py:414: error: Argument 1 to "enumerate" has incompatible type "list[dict[str, Any]] | Price"; expected "Iterable[dict[str, Any]]" [arg-type]
+ rotkehlchen/externalapis/cryptocompare.py:415: error: Value of type "list[dict[str, Any]] | Price" is not indexable [index]
+ rotkehlchen/externalapis/cryptocompare.py:425: error: Unsupported operand types for * ("list[dict[str, Any]]" and "list[dict[str, Any]]") [operator]
+ rotkehlchen/externalapis/cryptocompare.py:425: error: Unsupported operand types for * ("list[dict[str, Any]]" and "Price") [operator]
+ rotkehlchen/externalapis/cryptocompare.py:425: error: Unsupported operand types for * ("Price" and "list[dict[str, Any]]") [operator]
+ rotkehlchen/externalapis/cryptocompare.py:425: note: Both left and right operands are unions
+ rotkehlchen/externalapis/cryptocompare.py:425: error: Argument 1 to "Price" has incompatible type "list[dict[str, Any]] | Any | FVal"; expected "FVal" [arg-type]
+ rotkehlchen/exchanges/cryptocom.py:183: error: Incompatible types in assignment (expression has type "str", target has type "Literal['private/user-balance', 'private/get-trades', 'private/get-deposit-history', 'private/get-withdrawal-history'] | dict[str, Any] | ApiKey | int") [assignment]
+ rotkehlchen/tests/api/test_users.py:611: error: Statement is unreachable [unreachable]
+ rotkehlchen/tests/api/test_users.py:664: error: Statement is unreachable [unreachable]
+ rotkehlchen/tests/api/test_users.py:738: error: Statement is unreachable [unreachable]
+ rotkehlchen/tests/api/test_users.py:979: error: Statement is unreachable [unreachable]
+ rotkehlchen/tests/api/test_users.py:1122: error: Statement is unreachable [unreachable]
paroxython (https://github.com/laowantong/paroxython)
- paroxython/derived_labels_db.py:189: error: Invalid index type "str | Any" for "dict[LabelName, dict[Span, Any]]"; expected type "LabelName" [index]
+ paroxython/derived_labels_db.py:189: error: Invalid index type "str | Any" for "defaultdict[LabelName, dict[Span, Any]]"; expected type "LabelName" [index]
pip (https://github.com/pypa/pip)
+ src/pip/_internal/utils/misc.py:128: error: Unused "type: ignore" comment [unused-ignore]
static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/index_hierarchy.py:364: error: Unused "type: ignore" comment [unused-ignore]
+ static_frame/core/index_hierarchy.py:1462: error: Unused "type: ignore" comment [unused-ignore]
+ static_frame/core/index_hierarchy.py:3345: error: Subclass of "ndarray[tuple[Any, ...], dtype[object_]]" and "dtype[Any]" cannot exist: "dtype" is final [unreachable]
+ static_frame/core/index_hierarchy.py:3346: error: Statement is unreachable [unreachable]
+ static_frame/core/store_xlsx.py:478: error: Unused "type: ignore" comment [unused-ignore]
+ static_frame/core/yarn.py:321: error: Subclass of "ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]" and "int" cannot exist: would have incompatible method signatures [unreachable]
+ static_frame/core/yarn.py:321: error: Subclass of "ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]" and "integer[Any]" cannot exist: would have incompatible method signatures [unreachable]
+ static_frame/core/yarn.py:322: error: Statement is unreachable [unreachable]
+ static_frame/core/yarn.py:476: error: Subclass of "ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]" and "int" cannot exist: would have incompatible method signatures [unreachable]
+ static_frame/core/yarn.py:476: error: Subclass of "ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]" and "integer[Any]" cannot exist: would have incompatible method signatures [unreachable]
+ static_frame/core/yarn.py:478: error: Statement is unreachable [unreachable]
+ static_frame/core/quilt.py:1040: error: Returning Any from function declared to return "ndarray[Any, Any]" [no-any-return]
xarray (https://github.com/pydata/xarray)
+ xarray/plot/dataarray_plot.py: note: In function "_add_labels":
+ xarray/plot/dataarray_plot.py:1114: error: Argument "axis" to "_set_concise_date" has incompatible type "str"; expected "Literal['x', 'y', 'z']" [arg-type]
cwltool (https://github.com/common-workflow-language/cwltool)
+ cwltool/update.py: note: In function "update":
+ cwltool/update.py:362:36: error: Function "nextupdate" could always be true in boolean context [truthy-function]
+ cwltool/subgraph.py: note: In function "get_process":
+ cwltool/subgraph.py:271:19: error: Incompatible types in assignment (expression has type "int | float | MutableSequence[CWLOutputType] | MutableMapping[str, CWLOutputType] | None", variable has type "CommentedMap | CommentedSeq | str | None") [assignment]
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/optimize/backtesting.py:1712: error: Argument 4 to "time_pair_generator" of "Backtesting" has incompatible type "dict[str, tuple[Any, ...]]"; expected "dict[str, list[tuple[Any, ...]]]" [arg-type]
+ freqtrade/optimize/backtesting.py:1726: error: Argument "data" to "handle_left_open" of "Backtesting" has incompatible type "dict[str, tuple[Any, ...]]"; expected "dict[str, list[tuple[Any, ...]]]" [arg-type]
bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/embed/standalone.py: note: In function "components":
+ src/bokeh/embed/standalone.py:287:44: error: Argument 2 to "zip" has incompatible type "list[str] | list[RenderRoot]"; expected "Iterable[Model]" [arg-type]
schema_salad (https://github.com/common-workflow-language/schema_salad)
+ schema_salad/jsonld_context.py: note: In function "process_type":
+ schema_salad/jsonld_context.py:132:34: error: Value of type "str | None" is not indexable [index]
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.