forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
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
narrow on initial assignment #4
Open
hauntsaninja
wants to merge
1
commit 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 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
Diff from mypy_primer, showing the effect of this PR on open source code: arviz (https://github.com/arviz-devs/arviz)
+ arviz/stats/stats.py:434: error: Unexpected keyword argument "scale" [call-arg]
+ arviz/stats/stats.py:1551: note: Called function defined here
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/cwlrdf.py: note: In function "dot_without_parameters":
+ cwltool/cwlrdf.py:162:17: error: Statement is unreachable [unreachable]
+ cwltool/workflow_job.py: note: In function "dotproduct_scatter":
+ cwltool/workflow_job.py:288:9: error: Statement is unreachable [unreachable]
+ cwltool/subgraph.py: note: In function "get_process":
+ cwltool/subgraph.py:267: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]
pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_typing_extra.py:187: error: Argument 2 to <tuple> has incompatible type "type[typing.ParamSpec]"; expected "type[typing_extensions.ParamSpec]" [arg-type]
+ pydantic/_internal/_typing_extra.py:187: error: Incompatible types in assignment (expression has type "tuple[type[typing_extensions.ParamSpec], type[typing.ParamSpec]]", variable has type "tuple[type[typing_extensions.ParamSpec], ...]") [assignment]
psycopg (https://github.com/psycopg/psycopg)
+ tests/test_connection_async.py:729: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:732: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:733: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection_async.py:736: error: "object" has no attribute "guc" [attr-defined]
+ tests/test_connection_async.py:744: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:747: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection_async.py:748: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection_async.py:752: error: "object" has no attribute "guc" [attr-defined]
+ tests/test_connection.py:727: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:730: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:731: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection.py:734: error: "object" has no attribute "guc" [attr-defined]
+ tests/test_connection.py:742: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:745: error: "object" has no attribute "values" [attr-defined]
+ tests/test_connection.py:746: error: "object" has no attribute "name" [attr-defined]
+ tests/test_connection.py:749: error: "object" has no attribute "guc" [attr-defined]
CPython (Argument Clinic) (https://github.com/python/cpython)
+ Tools/clinic/libclinic/codegen.py:144: error: Statement is unreachable [unreachable]
+ Tools/clinic/libclinic/parse_args.py:671: error: Right operand of "and" is never evaluated [unreachable]
+ Tools/clinic/libclinic/parse_args.py:672: error: Statement is unreachable [unreachable]
+ Tools/clinic/libclinic/clanguage.py:93: error: Right operand of "or" is never evaluated [unreachable]
+ Tools/clinic/libclinic/clanguage.py:292: error: Non-overlapping equality check (left operand type: "int", right operand type: "Literal[Sentinels.unspecified]") [comparison-overlap]
pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/generic.py:3523: error: Argument 1 to "__call__" of "EngFormatter" has incompatible type "float | complex"; expected "float" [arg-type]
+ pandas/core/reshape/reshape.py:971: error: Cannot determine type of "__add__" [has-type]
+ pandas/core/reshape/reshape.py:971: note: Left operand is of type "list[Any] | FrozenList"
bidict (https://github.com/jab/bidict)
+ bidict/_base.py: note: In member "inverse" of class "BidictBase":
+ bidict/_base.py:179:13: error: Returning Any from function declared to return "BidictBase[VT, KT]" [no-any-return]
pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/utils.py:1339: error: Returning Any from function declared to return "str | None" [no-any-return]
+ pylint/checkers/classes/class_checker.py:255: error: Call to untyped function (unknown) in typed context [no-untyped-call]
black (https://github.com/psf/black)
+ src/blib2to3/pgen2/tokenize.py:612:13: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:722:17: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:786:25: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:883:25: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:890:25: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:905:29: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:983:29: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:1052:28: error: Right operand of "and" is never evaluated [unreachable]
+ src/blib2to3/pgen2/tokenize.py:1053:29: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:1067:25: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:1074:25: error: Statement is unreachable [unreachable]
+ src/blib2to3/pgen2/tokenize.py:1092:25: error: Statement is unreachable [unreachable]
+ src/black/lines.py:847:21: error: Right operand of "and" is never evaluated [unreachable]
+ src/black/lines.py:850:17: error: Statement is unreachable [unreachable]
+ src/black/lines.py:940:32: error: Right operand of "and" is never evaluated [unreachable]
+ src/black/lines.py:941:13: error: Statement is unreachable [unreachable]
+ src/black/linegen.py:300:38: error: Right operand of "or" is never evaluated [unreachable]
+ src/black/linegen.py:784:13: error: Statement is unreachable [unreachable]
+ src/black/linegen.py:849:17: error: Statement is unreachable [unreachable]
+ src/black/linegen.py:1725:13: error: Statement is unreachable [unreachable]
+ src/black/linegen.py:1752:17: error: Statement is unreachable [unreachable]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/internal/coverage/instrumentation_py3_12.py:104: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:104: error: Incompatible types in assignment (expression has type "tuple[None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
- ddtrace/internal/coverage/instrumentation_py3_12.py:106: error: List item 0 has incompatible type "str | None"; expected "str" [list-item]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:106: error: List item 0 has incompatible type "None"; expected "str" [list-item]
- ddtrace/internal/coverage/instrumentation_py3_12.py:109: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str | None]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
- ddtrace/internal/coverage/instrumentation_py3_12.py:117: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:109: error: Incompatible types in assignment (expression has type "tuple[None, tuple[None]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:117: error: Incompatible types in assignment (expression has type "tuple[None, tuple[str, ...]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
- ddtrace/internal/coverage/instrumentation_py3_12.py:122: error: Incompatible types in assignment (expression has type "tuple[str | None, tuple[str]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
+ ddtrace/internal/coverage/instrumentation_py3_12.py:122: error: Incompatible types in assignment (expression has type "tuple[None, tuple[str]]", target has type "tuple[str, tuple[str, ...] | None]") [assignment]
+ ddtrace/appsec/_iast/_taint_tracking/aspects.py:780: error: Incompatible types in assignment (expression has type "list[bytes | str] | list[str] | list[bytes] | list[bytearray]", variable has type "list[str | bytes | bytearray | None]") [assignment]
mypy (https://github.com/python/mypy)
+ mypy/types.py:2219: error: List item 0 has incompatible type "Optional[str]"; expected "None" [list-item]
+ mypy/types.py:2219: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-list-item for more info
+ mypy/types.py:3712: error: Need type annotation for "old_index" [var-annotated]
+ mypy/types.py:3712: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-var-annotated for more info
+ mypy/tvar_scope.py:75: error: Left operand of "and" is always true [redundant-expr]
+ mypy/tvar_scope.py:75: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-redundant-expr for more info
+ mypyc/transform/exceptions.py:49: error: Left operand of "and" is always true [redundant-expr]
+ mypy/plugins/dataclasses.py:1013: error: Left operand of "and" is always true [redundant-expr]
+ mypy/semanal.py:6780: error: Argument 2 to "isinstance" has incompatible type "object"; expected "_ClassInfo" [arg-type]
+ mypy/semanal.py:6781: error: "object" has no attribute "type" [attr-defined]
+ mypy/semanal.py:6793: error: "object" has no attribute "type" [attr-defined]
+ mypy/checker.py:2667: error: Left operand of "and" is always true [redundant-expr]
+ mypy/plugins/attrs.py:767: error: Redundant call to get_proper_type() [misc]
+ mypy/plugins/attrs.py:1074: error: Left operand of "and" is always true [redundant-expr]
+ mypy/server/update.py:1122: error: Left operand of "or" is always false [redundant-expr]
+ mypyc/irbuild/expression.py:995: error: Left operand of "and" is always true [redundant-expr]
+ mypy/test/testfinegrained.py:319: error: Unsupported left operand type for + ("object") [operator]
+ mypy/test/testfinegrained.py:319: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-operator for more info
+ mypy/test/testfinegrained.py:322: error: Item "object" of "Union[object, Any]" has no attribute "replace" [union-attr]
+ mypy/test/testfinegrained.py:322: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-union-attr for more info
+ mypy/test/testfinegrained.py:325: error: Item "object" of "Union[object, Any]" has no attribute "strip" [union-attr]
+ mypy/test/testfinegrained.py:357: error: Unsupported left operand type for + ("object") [operator]
+ mypy/test/testfinegrained.py:358: error: Item "object" of "Union[object, Any]" has no attribute "strip" [union-attr]
pip (https://github.com/pypa/pip)
+ src/pip/_internal/utils/misc.py:135: error: Unused "type: ignore" comment [unused-ignore]
xarray (https://github.com/pydata/xarray)
+ xarray/core/indexing.py: note: In function "group_indexers_by_index":
+ xarray/core/indexing.py:160: error: Invalid index type "None" for "dict[int, Any | Index]"; expected type "int" [index]
+ xarray/core/variable.py:161: error: "Never" has no attribute "ndim" [attr-defined]
+ xarray/core/variable.py:163: error: "Never" has no attribute "ndim" [attr-defined]
+ xarray/core/alignment.py: note: In member "_normalize_indexes" of class "Aligner":
+ xarray/core/alignment.py:209: error: "Never" has no attribute "dtype" [attr-defined]
+ xarray/plot/dataarray_plot.py: note: In function "_add_labels":
+ xarray/plot/dataarray_plot.py:1104: error: Argument "axis" to "_set_concise_date" has incompatible type "str"; expected "Literal['x', 'y', 'z']" [arg-type]
+ xarray/tests/test_variable.py: note: In member "test_tz_datetime" of class "TestAsCompatibleData":
+ xarray/tests/test_variable.py:2669: error: "Never" has no attribute "array" [attr-defined]
+ xarray/tests/test_variable.py:2670: error: "Never" has no attribute "array" [attr-defined]
+ xarray/tests/test_variable.py:2678: error: "Never" has no attribute "dtype" [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:259: error: "Never" has no attribute "_transfer_param_map_from_java" [attr-defined]
+ python/pyspark/ml/tuning.py:441: error: "Never" has no attribute "uid" [attr-defined]
colour (https://github.com/colour-science/colour)
- colour/hints/__init__.py:641: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | int | float | complex | str | _NestedSequence[bool | int | float | complex | str | bytes]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]" [arg-type]
- colour/hints/__init__.py:643: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | int | float | complex | str | _NestedSequence[bool | int | float | complex | str | bytes]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]" [arg-type]
- colour/hints/__init__.py:652: error: Argument 1 to "number_or_arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | int | float | complex | str | _NestedSequence[bool | int | float | complex | str | bytes]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]" [arg-type]
- colour/hints/__init__.py:654: error: Argument 1 to "number_or_arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | int | float | complex | str | _NestedSequence[bool | int | float | complex | str | bytes]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]" [arg-type]
- colour/hints/__init__.py:663: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | int | float | complex | str | _NestedSequence[bool | int | float | complex | str | bytes]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]" [arg-type]
- colour/hints/__init__.py:665: error: Argument 1 to "arraylike" has incompatible type "list[Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | int | float | complex | str | _NestedSequence[bool | int | float | complex | str | bytes]]"; expected "Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes]" [arg-type]
beartype (https://github.com/beartype/beartype)
+ beartype/door/_func/infer/kind/infercallable.py:444: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/door/_func/infer/kind/infercallable.py:480: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/door/_func/infer/kind/infercallable.py:512: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/claw/_package/clawpkgtrie.py:497: error: Unused "type: ignore" comment [unused-ignore]
+ beartype/claw/_package/clawpkgtrie.py:699: error: Unused "type: ignore" comment [unused-ignore]
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]
kopf (https://github.com/nolar/kopf)
+ kopf/_kits/webhooks.py:539: error: Item "None" of "Any | None" has no attribute "public_url" [union-attr]
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: Cannot determine type of "_fields" [has-type]
+ sympy/codegen/ast.py:1237: error: Cannot determine type of "_fields" [has-type]
+ 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: Cannot determine type of "_fields" [has-type]
+ 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 "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1831: error: Cannot determine type of "_fields" [has-type]
+ 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:1897: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/ast.py:1905: 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:49: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:70: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:96: 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:121: 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:153: error: Cannot determine type of "_fields" [has-type]
+ sympy/codegen/fnodes.py:176: error: Incompatible types in assignment (expression has type "tuple[str, str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:208: 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:233: error: Incompatible types in assignment (expression has type "tuple[str]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:252: 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:550: error: Incompatible types in assignment (expression has type "tuple[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]", base class "Token" defined the type as "tuple[()]") [assignment]
+ sympy/codegen/fnodes.py:647: 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:654: 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 "Token" defined the type as "tuple[()]") [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 "Token" defined the type as "tuple[()]") [assignment]
+ sympy/integrals/manualintegrate.py:1568: error: Unused "type: ignore" comment [unused-ignore]
+ 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]
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]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/structured_configs/_implementations.py:2264: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/structured_configs/_implementations.py:2274: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/structured_configs/_implementations.py:2277: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/structured_configs/_implementations.py:2284: error: "Sequence[str | Builds[Any]]" has no attribute "append" [attr-defined]
- src/hydra_zen/wrapper/_implementations.py:454: error: Argument 3 has incompatible type "**dict[str, DictConfig]"; expected "P.kwargs" [arg-type]
- src/hydra_zen/wrapper/_implementations.py:455: error: Unused "type: ignore" comment [unused-ignore]
pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/config/findpaths.py:129: error: Statement is unreachable [unreachable]
+ src/_pytest/config/argparsing.py:509: error: Returning Any from function declared to return "str" [no-any-return]
+ src/_pytest/_code/code.py:1063: error: Statement is unreachable [unreachable]
+ src/_pytest/config/__init__.py:1133: 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[Union[str, Path], Optional[int]]" [no-any-return]
+ src/_pytest/assertion/rewrite.py:580: error: Statement is unreachable [unreachable]
+ src/_pytest/recwarn.py:216: error: Right operand of "or" is never evaluated [unreachable]
+ src/_pytest/python.py:726: error: Returning Any from function declared to return "Optional[object]" [no-any-return]
+ src/_pytest/python.py:839: error: Returning Any from function declared to return "bool" [no-any-return]
+ src/_pytest/python.py:846: error: Returning Any from function declared to return "bool" [no-any-return]
+ testing/test_reports.py:310: 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:225: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:226: error: Unused "type: ignore" comment [unused-ignore]
+ testing/test_compat.py:230: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:260: error: Statement is unreachable [unreachable]
+ testing/test_compat.py:261: error: Unused "type: ignore" comment [unused-ignore]
+ testing/test_compat.py:265: error: Statement is unreachable [unreachable]
freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/optimize/backtesting.py:1529: error: Argument "data" to "handle_left_open" of "Backtesting" has incompatible type "dict[str, tuple[Any, ...]]"; expected "dict[str, list[tuple[Any, ...]]]" [arg-type]
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:618: error: Redundant cast to "int" [redundant-cast]
mkdocs (https://github.com/mkdocs/mkdocs)
+ mkdocs/localization.py:90: error: Statement is unreachable [unreachable]
trio (https://github.com/python-trio/trio)
+ src/trio/testing/_fake_net.py:99: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:878: error: "Never" has no attribute "cancel" [attr-defined]
+ src/trio/_core/_tests/test_run.py:1289: error: "Never" has no attribute "run_sync_soon" [attr-defined]
+ src/trio/_core/_tests/test_run.py:2313: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2313: error: "Never" has no attribute "coro" [attr-defined]
+ src/trio/_core/_tests/test_run.py:2313: note: Error code "attr-defined" not covered by "type: ignore" comment
+ src/trio/_core/_tests/test_run.py:2316: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2316: error: "Never" has no attribute "coro" [attr-defined]
+ src/trio/_core/_tests/test_run.py:2316: note: Error code "attr-defined" not covered by "type: ignore" comment
+ src/trio/_core/_tests/test_run.py:2382: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2382: error: "Never" has no attribute "coro" [attr-defined]
+ src/trio/_core/_tests/test_run.py:2382: note: Error code "attr-defined" not covered by "type: ignore" comment
+ src/trio/_core/_tests/test_run.py:2383: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2383: error: "Never" has no attribute "coro" [attr-defined]
+ src/trio/_core/_tests/test_run.py:2383: note: Error code "attr-defined" not covered by "type: ignore" comment
+ src/trio/_core/_tests/test_run.py:2384: error: Unused "type: ignore" comment [unused-ignore]
+ src/trio/_core/_tests/test_run.py:2384: error: "Never" has no attribute "coro" [attr-defined]
+ src/trio/_core/_tests/test_run.py:2384: note: Error code "attr-defined" not covered by "type: ignore" comment
+ src/trio/_core/_tests/test_run.py:2415: error: Unused "type: ignore" comment [unused-ignore]
discord.py (https://github.com/Rapptz/discord.py)
- discord/scheduled_event.py:495: error: Incompatible types in assignment (expression has type "str | None", target has type "str") [assignment]
- discord/appinfo.py:353: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:356: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:359: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
- discord/appinfo.py:361: error: Unsupported target for indexed assignment ("dict[str, Any] | None") [index]
... (truncated 142 lines) ...``` |
if the type annotation is Any we should listen |
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.