Skip to content
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

Typecheck unreachable code #18707

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

A5rocks
Copy link
Collaborator

@A5rocks A5rocks commented Feb 19, 2025

Mypy doesn't typecheck unreachable code and this is surprising to many. This is an attempt at fixing that. It's a draft until:

  • I list out the issues fixed
  • I fix the bugs raised by the test cases
  • I get feedback that this is fine
  • I put this behind a flag (we can bundle this in --strict maybe and hopefully enable it by default in 2.0)

Problem areas based on test cases:

  • currently we use None for unreachable type maps but we want to know what is unreachable to mark it as Never
    • it doesn't seem too bad to mark unreachability based on if a variable has a Never type
  • analyzing a function multiple times for type var values
    • I think I can disable this new behavior based on if we're in a function like that?
  • reporting unreachability multiple times (block in a block)
    • blocks could store unreachability report status
  • exports could change (see check-incremental.test's changes)
    • I think this is fine?
  • Never doesn't support operations (e.g. <Never>.f(), <Never> > 5)
    • it should return Never for these, I think?

Also maybe reveal_type(<Never>) should be non-trivial.

Generally I tried enabling --warn-unreachable in a test case if it looked like people were relying on un-checked unreachable code as a test. Also obviously many of the test case changes are wrong I just did not have the energy to fix all the bugs (and honestly maybe should think through the two things above -- the first especially was a source of issues).

I also have no clue what mypyc does so the test change there could be awful.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

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

kornia (https://github.com/kornia/kornia)
+ kornia/feature/lightglue.py:580: error: "None" has no attribute "__iter__" (not iterable)  [attr-defined]
+ kornia/x/trainers.py:126: error: Need type annotation for "a"  [var-annotated]
+ kornia/x/trainers.py:127: error: Need type annotation for "a"  [var-annotated]
+ kornia/x/trainers.py:128: error: Need type annotation for "a"  [var-annotated]
+ kornia/x/trainers.py:129: error: Need type annotation for "a"  [var-annotated]
+ kornia/x/trainers.py:130: error: Need type annotation for "a"  [var-annotated]
+ kornia/contrib/models/sam/model.py:212: error: "SamConfig" has no attribute "num_heads"  [attr-defined]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/net/http/validate.py:131: error: Argument 1 to "assert_never" has incompatible type "Literal['chunked', 'compress,chunked', 'deflate,chunked', 'gzip,chunked', 'compress', 'deflate', 'gzip', 'identity']"; expected "Never"  [arg-type]
+ mitmproxy/net/http/http1/read.py:126: error: Argument 1 to "assert_never" has incompatible type "Literal['chunked', 'compress,chunked', 'deflate,chunked', 'gzip,chunked', 'compress', 'deflate', 'gzip', 'identity']"; expected "Never"  [arg-type]
+ mitmproxy/contentviews/__init__.py:200: error: "None" not callable  [misc]

pyinstrument (https://github.com/joerick/pyinstrument)
+ pyinstrument/processors.py:167: error: Incompatible types in assignment (expression has type "float", variable has type "Never")  [assignment]

ignite (https://github.com/pytorch/ignite)
+ ignite/engine/engine.py:246: error: Argument 1 to "append" of "list" has incompatible type "list[str] | list[EventEnum]"; expected "EventEnum"  [arg-type]
+ ignite/engine/engine.py:248: error: Invalid index type "list[str] | list[EventEnum]" for "dict[str | Events | CallableEventWithFilter, str]"; expected type "str | Events | CallableEventWithFilter"  [index]
+ ignite/handlers/param_scheduler.py:1179: error: Argument 1 to "ConcatScheduler" has incompatible type "list[ParamScheduler | ParamGroupScheduler | Any]"; expected "list[ParamScheduler]"  [arg-type]
+ ignite/handlers/param_scheduler.py:1188: error: Argument "schedulers" to "simulate_values" of "ConcatScheduler" has incompatible type "list[ParamScheduler | ParamGroupScheduler | Any]"; expected "list[ParamScheduler]"  [arg-type]
+ ignite/handlers/lr_finder.py:103: error: Unsupported operand types for * ("int" and "None")  [operator]
+ ignite/handlers/lr_finder.py:103: error: Unsupported operand types for * ("None" and "int")  [operator]
+ ignite/handlers/lr_finder.py:103: error: Unsupported left operand type for * ("None")  [operator]
+ ignite/handlers/lr_finder.py:103: note: Both left and right operands are unions

Expression (https://github.com/cognitedata/Expression)
+ expression/core/option.py:100: error: Missing return statement  [return]
+ README.py:484: error: Incompatible types in assignment (expression has type "range", variable has type "Seq[int]")  [assignment]

manticore (https://github.com/trailofbits/manticore)
+ tests/wasm_sym/json2smc.py:95: error: Need type annotation for "modules" (hint: "modules: list[<type>] = ...")  [var-annotated]
+ tests/wasm/json2mc.py:65: error: Need type annotation for "imports" (hint: "imports: list[<type>] = ...")  [var-annotated]
+ manticore/wasm/types.py:56: error: Unused "type: ignore" comment  [unused-ignore]
+ manticore/platforms/wasm.py:262: error: Incompatible types in assignment (expression has type "HostFunc", variable has type "FuncAddr | TableAddr | MemAddr | GlobalAddr | None")  [assignment]
+ manticore/native/cpu/abstractcpu.py:693: error: Incompatible types in assignment (expression has type "bool", variable has type "Never")  [assignment]
+ manticore/native/cpu/abstractcpu.py:695: error: Incompatible types in assignment (expression has type "int", variable has type "Never")  [assignment]

aiortc (https://github.com/aiortc/aiortc)
+ src/aiortc/jitterbuffer.py:66: error: Need type annotation for "packets" (hint: "packets: list[<type>] = ...")  [var-annotated]
+ src/aiortc/rtcicetransport.py:100: error: Need type annotation for "uris"  [var-annotated]
+ src/aiortc/rtcicetransport.py:102: error: Incompatible types in assignment (expression has type "list[str]", variable has type "Never")  [assignment]
+ src/aiortc/rtcicetransport.py:104: error: Need type annotation for "uri"  [var-annotated]

optuna (https://github.com/optuna/optuna)
+ optuna/importance/_base.py:96: error: Item "None" of "dict[str, BaseDistribution] | None" has no attribute "items"  [union-attr]

altair (https://github.com/vega/altair)
+ tools/schemapi/codegen.py:153: error: Set comprehension has incompatible type Set[set[str]]; expected Set[str]  [misc]
+ tools/schemapi/codegen.py:154: error: Set comprehension has incompatible type Set[set[str]]; expected Set[str]  [misc]
+ tools/schemapi/codegen.py:156: error: Set comprehension has incompatible type Set[set[str]]; expected Set[str]  [misc]

poetry (https://github.com/python-poetry/poetry)
+ src/poetry/utils/helpers.py:307: error: Module has no attribute "OpenKey"  [attr-defined]
+ src/poetry/utils/helpers.py:308: error: Module has no attribute "HKEY_CURRENT_USER"  [attr-defined]
+ src/poetry/utils/helpers.py:311: error: Module has no attribute "QueryValueEx"  [attr-defined]
+ src/poetry/utils/helpers.py:331: error: Module has no attribute "windll"  [attr-defined]
+ src/poetry/utils/helpers.py:342: error: Module has no attribute "windll"  [attr-defined]

hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/exe/xmltools.py:2351: error: Unexpected keyword argument "base" for "SetItem"  [call-arg]
+ hydpy/core/itemtools.py:972: note: "SetItem" defined here
+ hydpy/exe/xmltools.py:2351: error: Unexpected keyword argument "base" for "SetItem"  [call-arg]
+ hydpy/core/itemtools.py:972: note: "SetItem" defined here
+ hydpy/exe/xmltools.py:2360: error: Unexpected keyword argument "keyword" for <subclass of "hydpy.core.itemtools.AddItem" and "hydpy.core.itemtools.SetItem">  [call-arg]
+ hydpy/core/itemtools.py:1401: note: <subclass of "hydpy.core.itemtools.AddItem" and "hydpy.core.itemtools.SetItem"> defined here
+ hydpy/exe/xmltools.py:2360: error: Unexpected keyword argument "keyword" for <subclass of "hydpy.core.itemtools.MultiplyItem" and "hydpy.core.itemtools.SetItem">  [call-arg]
+ hydpy/core/itemtools.py:1401: note: <subclass of "hydpy.core.itemtools.MultiplyItem" and "hydpy.core.itemtools.SetItem"> defined here
+ hydpy/core/optiontools.py:515: error: Argument 1 to "assert_never" has incompatible type "Literal['asc']"; expected "Never"  [arg-type]
+ hydpy/core/optiontools.py:584: error: Argument 1 to "assert_never" has incompatible type "Literal['mean']"; expected "Never"  [arg-type]
+ hydpy/core/optiontools.py:649: error: Argument 1 to "assert_never" has incompatible type "Literal['HydPy']"; expected "Never"  [arg-type]
+ hydpy/core/itemtools.py:424: error: Argument 1 to "assert_never" has incompatible type "Literal['subunit']"; expected "Never"  [arg-type]
+ hydpy/core/devicetools.py:2334: error: Argument 1 to "assert_never" has incompatible type "Literal['obs', 'obs_newsim', 'obs_oldsim', 'obs_bi', 'obs_oldsim_bi']"; expected "Never"  [arg-type]
+ hydpy/core/devicetools.py:2343: error: Argument 1 to "assert_never" has incompatible type "Literal['oldsim', 'obs_oldsim']"; expected "Never"  [arg-type]

werkzeug (https://github.com/pallets/werkzeug)
+ src/werkzeug/middleware/shared_data.py:139: error: Cannot assign to a method  [method-assign]
+ src/werkzeug/middleware/shared_data.py:139: error: Incompatible types in assignment (expression has type "Callable[[Arg(str, 'x')], bool]", variable has type "Callable[[Arg(str, 'filename')], bool]")  [assignment]
+ src/werkzeug/local.py:296: error: "Never" not callable  [misc]
+ tests/test_wrappers.py:729: error: Incompatible types in assignment (expression has type "str", variable has type "int")  [assignment]
+ tests/test_wrappers.py:741: error: Incompatible types in assignment (expression has type "int", variable has type "Optional[timedelta]")  [assignment]
+ tests/test_wrappers.py:981: error: Call to untyped function "generate_items" in typed context  [no-untyped-call]
+ tests/test_wrappers.py:997: error: Argument 1 to "write" of "ResponseStream" has incompatible type "str"; expected "bytes"  [arg-type]
+ tests/test_wrappers.py:998: error: Non-overlapping equality check (left operand type: "tuple[str, str]", right operand type: "list[str]")  [comparison-overlap]
+ tests/test_http.py:141: error: Incompatible types in assignment (expression has type "float", variable has type "Optional[int]")  [assignment]
+ tests/test_http.py:144: error: Incompatible types in assignment (expression has type "float", variable has type "Optional[int]")  [assignment]

steam.py (https://github.com/Gobot1234/steam.py)
+ steam/id.py:267: error: Incompatible return value type (implicitly returns "None", expected "str")  [return-value]
+ steam/tag.py:117: error: Yield value expected  [misc]
+ steam/abc.py:992: error: Yield value expected  [misc]
+ steam/ext/tf2/backpack.py:301: error: "BackpackItem[OwnerT]" has no attribute "elevated"  [attr-defined]
+ steam/ext/tf2/backpack.py:304: error: "BackpackItem[OwnerT]" has no attribute "killstreak"  [attr-defined]
+ steam/ext/tf2/backpack.py:305: error: "BackpackItem[OwnerT]" has no attribute "killstreak"  [attr-defined]
+ steam/ext/tf2/backpack.py:310: error: "BackpackItem[OwnerT]" has no attribute "festivized"; maybe "is_festivized"?  [attr-defined]
+ steam/ext/tf2/backpack.py:313: error: "BackpackItem[OwnerT]" has no attribute "craft_number"  [attr-defined]
+ steam/ext/tf2/backpack.py:314: error: "BackpackItem[OwnerT]" has no attribute "selfNumber"  [attr-defined]
+ steam/ext/tf2/backpack.py:316: error: "BackpackItem[OwnerT]" has no attribute "crate_number"  [attr-defined]
+ steam/ext/tf2/backpack.py:317: error: "BackpackItem[OwnerT]" has no attribute "selfNumber"  [attr-defined]
+ steam/ext/tf2/backpack.py:343: error: Incompatible return value type (got "BackpackItem[OwnerT]", expected "BackpackItem[None]")  [return-value]

PyGithub (https://github.com/PyGithub/PyGithub)
- github/GithubRetry.py:201: error: Unused "type: ignore" comment  [unused-ignore]
+ github/Team.py:293: error: Incompatible types in assignment (expression has type "str", variable has type "Repository")  [assignment]

aiohttp (https://github.com/aio-libs/aiohttp)
+ aiohttp/client_exceptions.py:339:19: error: Incompatible types in assignment (expression has type "tuple[Never, ...]", variable has type "tuple[type[SSLCertVerificationError]]")  [assignment]
+ aiohttp/client_exceptions.py:339:19: note: Error code "assignment" not covered by "type: ignore" comment
+ aiohttp/client_exceptions.py:340:25: error: Incompatible types in assignment (expression has type "tuple[type[ClientSSLError], type[ValueError]]", variable has type "tuple[type[ClientSSLError], type[SSLCertVerificationError]]")  [assignment]
+ aiohttp/client_exceptions.py:345:18: error: Incompatible types in assignment (expression has type "tuple[Never, ...]", variable has type "tuple[type[SSLError]]")  [assignment]
+ aiohttp/client_exceptions.py:346:23: error: Incompatible types in assignment (expression has type "tuple[type[ClientSSLError]]", variable has type "tuple[type[ClientSSLError], type[SSLError]]")  [assignment]
+ aiohttp/cookiejar.py:473:13: error: Incompatible types in "yield" (actual type "None", expected type "Morsel[str]")  [misc]
+ aiohttp/cookiejar.py:473:13: note: Error code "misc" not covered by "type: ignore" comment
+ aiohttp/multipart.py:319:13: error: Statement is unreachable  [unreachable]
+ aiohttp/multipart.py:319:13: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-unreachable for more info
+ aiohttp/connector.py:773:16: error: Incompatible return value type (got "None", expected "SSLContext")  [return-value]
+ aiohttp/connector.py:773:16: note: Error code "return-value" not covered by "type: ignore" comment
+ aiohttp/client_reqrep.py:172:25: error: Incompatible types in assignment (expression has type "tuple[type[bool]]", variable has type "tuple[type[SSLContext], type[bool], type[Fingerprint]]")  [assignment]
+ aiohttp/client_reqrep.py:172:25: note: Error code "assignment" not covered by "type: ignore" comment

static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/util.py:3317: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3318: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3320: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3322: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3325: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3326: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3328: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3329: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3351: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3352: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3358: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3364: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3366: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3367: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3369: error: Statement is unreachable  [unreachable]
+ static_frame/core/util.py:3370: error: Statement is unreachable  [unreachable]
+ static_frame/core/index_datetime.py:141: error: Statement is unreachable  [unreachable]
+ static_frame/core/index_datetime.py:142: error: Statement is unreachable  [unreachable]
+ static_frame/core/index_datetime.py:144: error: Statement is unreachable  [unreachable]
+ static_frame/core/frame.py:5717: error: Unused "type: ignore" comment  [unused-ignore]
+ static_frame/test/test_case.py:89: error: Statement is unreachable  [unreachable]
+ static_frame/test/test_case.py:92: error: Statement is unreachable  [unreachable]

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/settings/sources.py:115: error: "Never" object is not iterable  [misc]
+ src/prefect/settings/sources.py:116: error: Cannot determine type of "key"  [has-type]
+ src/prefect/settings/sources.py:116: error: Cannot determine type of "value"  [has-type]
+ src/prefect/settings/sources.py:118: error: Cannot determine type of "key"  [has-type]
+ src/prefect/settings/sources.py:118: error: Unsupported right operand type for in ("Optional[list[str]]")  [operator]
+ src/prefect/_internal/concurrency/cancellation.py:63: error: Need type annotation for "exc"  [var-annotated]
+ src/prefect/_internal/concurrency/cancellation.py:181: error: Unsupported left operand type for > ("None")  [operator]
+ src/prefect/server/database/dependencies.py:304: error: "Self" has no attribute "_func"  [attr-defined]
+ src/prefect/client/orchestration/__init__.py:319: error: Setting? has no attribute "value"  [attr-defined]
+ src/prefect/client/orchestration/__init__.py:809: error: Incompatible types in assignment (expression has type "int", variable has type "list[float]")  [assignment]
+ src/prefect/client/orchestration/__init__.py:1327: error: Setting? has no attribute "value"  [attr-defined]
+ src/prefect/client/orchestration/__init__.py:1605: error: Incompatible types in assignment (expression has type "int", variable has type "list[float]")  [assignment]
+ src/prefect/blocks/core.py:128: error: Need type annotation for "definition_key"  [var-annotated]
+ src/prefect/concurrency/v1/sync.py:61: error: Need type annotation for "limits"  [var-annotated]
+ src/prefect/concurrency/v1/sync.py:69: error: Value of type "Coroutine[Any, Any, R?]" must be used  [unused-coroutine]
+ src/prefect/concurrency/v1/sync.py:69: note: Are you missing an await?
- src/prefect/tasks.py:460: error: Incompatible types in assignment (expression has type "CachePolicy", variable has type "_None")  [assignment]
+ src/prefect/tasks.py:460: error: Incompatible types in assignment (expression has type "CachePolicy", variable has type "Optional[_None]")  [assignment]
- src/prefect/tasks.py:463: error: Incompatible types in assignment (expression has type "None", variable has type "_None")  [assignment]
- src/prefect/tasks.py:465: error: Incompatible types in assignment (expression has type "Union[CachePolicy, type[NotSet]]", variable has type "_None")  [assignment]
+ src/prefect/tasks.py:465: error: Incompatible types in assignment (expression has type "Union[CachePolicy, type[NotSet]]", variable has type "Optional[_None]")  [assignment]
+ src/prefect/tasks.py:672: error: Argument "cache_policy" to "Task" has incompatible type "Union[CachePolicy, type[NotSet], None]"; expected "Union[CachePolicy, type[NotSet]]"  [arg-type]
- src/prefect/server/models/deployments.py:740: error: "Never" has no attribute "model_dump"  [attr-defined]
+ src/prefect/workers/base.py:650: error: Setting? has no attribute "value"  [attr-defined]
+ src/prefect/input/run_input.py:553: error: Incompatible return value type (got "Coroutine[Any, Any, R?]", expected "Union[T, AutomaticRunInput[T]]")  [return-value]
+ src/prefect/flow_runs.py:296: error: "T" has no attribute "load"  [attr-defined]
+ src/prefect/flow_runs.py:297: error: Return value expected  [return-value]
- src/prefect/cli/deploy.py:878: error: Need type annotation for "active_workers" (hint: "active_workers: list[<type>] = ...")  [var-annotated]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/dtypes/dtypes.py:480: error: Incompatible types in assignment (expression has type "dtype[Any] | ExtensionDtype", variable has type "str")  [assignment]
+ pandas/core/arrays/categorical.py:453: error: Item "ExtensionArray" of "ExtensionArray | ndarray[Any, Any]" has no attribute "_pa_array"  [union-attr]
+ pandas/core/arrays/categorical.py:453: error: Item "ndarray[Any, Any]" of "ExtensionArray | ndarray[Any, Any]" has no attribute "_pa_array"  [union-attr]
+ pandas/io/pytables.py:2077: error: Value of type "None" is not indexable  [index]
- pandas/io/parsers/c_parser_wrapper.py:123: error: Cannot determine type of "names"  [has-type]
+ pandas/io/parsers/c_parser_wrapper.py:111: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:122: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:134: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:148: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:150: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:153: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:158: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:162: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:166: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:170: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:179: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:183: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:216: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:216: error: Item "None" of "Sequence[Hashable] | None" has no attribute "__iter__" (not iterable)  [union-attr]
+ pandas/io/parsers/c_parser_wrapper.py:216: note: Error code "union-attr" not covered by "type: ignore" comment
+ pandas/io/parsers/c_parser_wrapper.py:220: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:220: error: Argument 2 to "_set_noconvert_dtype_columns" of "ParserBase" has incompatible type "Sequence[Hashable] | None"; expected "Sequence[Hashable]"  [arg-type]
+ pandas/io/parsers/c_parser_wrapper.py:220: note: Error code "arg-type" not covered by "type: ignore" comment
+ pandas/io/parsers/c_parser_wrapper.py:239: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:239: error: Argument 2 to "_concatenate_chunks" has incompatible type "Sequence[Hashable] | None"; expected "list[str]"  [arg-type]
+ pandas/io/parsers/c_parser_wrapper.py:239: note: Error code "arg-type" not covered by "type: ignore" comment
+ pandas/io/parsers/c_parser_wrapper.py:274: error: Unused "type: ignore" comment  [unused-ignore]
+ pandas/io/parsers/c_parser_wrapper.py:274: error: Incompatible types in assignment (expression has type "Sequence[Hashable] | None", variable has type "Sequence[Hashable]")  [assignment]
+ pandas/io/parsers/c_parser_wrapper.py:274: note: Error code "assignment" not covered by "type: ignore" comment
+ pandas/core/generic.py:4645: error: "ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]" has no attribute "to_numpy"  [attr-defined]
+ pandas/core/frame.py:11541: error: Item "ndarray[Any, Any]" of "ExtensionArray | ndarray[Any, Any]" has no attribute "_reduce"  [union-attr]
+ pandas/core/window/ewm.py:1069: error: Value of type "None" is not indexable  [index]
+ pandas/core/tools/datetimes.py:1056: error: Incompatible types in assignment (expression has type "bool", variable has type "Timestamp | NaTType | Series | Index")  [assignment]
+ pandas/core/internals/managers.py:234: error: "BaseBlockManager" has no attribute "_rebuild_blknos_and_blklocs"  [attr-defined]
+ pandas/core/internals/managers.py:245: error: "BaseBlockManager" has no attribute "_rebuild_blknos_and_blklocs"  [attr-defined]
+ pandas/core/internals/construction.py:903: error: Need type annotation for "col"  [var-annotated]
+ pandas/core/reshape/reshape.py:493: error: Need type annotation for "unstcols"  [var-annotated]
+ pandas/core/reshape/reshape.py:495: error: Incompatible types in assignment (expression has type "Index", variable has type "Never")  [assignment]
+ pandas/core/reshape/reshape.py:501: error: Generator has incompatible item type "signedinteger[_32Bit | _64Bit]"; expected "ndarray[tuple[int, ...], dtype[signedinteger[_32Bit | _64Bit]]]"  [misc]
+ pandas/core/reshape/reshape.py:508: error: Incompatible types in assignment (expression has type "MultiIndex", variable has type "Never")  [assignment]
+ pandas/core/reshape/reshape.py:966: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "FrozenList")  [assignment]
+ pandas/core/reshape/reshape.py:967: error: Incompatible types in assignment (expression has type "list[ndarray[Any, Any]]", variable has type "FrozenList")  [assignment]
- pandas/io/formats/style.py:1901: error: "Never" has no attribute "shape"  [attr-defined]
- pandas/io/formats/style.py:1904: error: "Never" has no attribute "shape"  [attr-defined]

anyio (https://github.com/agronholm/anyio)
+ src/anyio/to_interpreter.py:189: error: Argument 2 to "call" of "Worker" has incompatible type "tuple[*PosArgsT]"; expected "tuple[Any]"  [arg-type]

jinja (https://github.com/pallets/jinja)
+ src/jinja2/runtime.py:903: error: Statement is unreachable  [unreachable]

psycopg (https://github.com/psycopg/psycopg)
+ psycopg/psycopg/_conninfo_attempts_async.py:96: error: Incompatible types in assignment (expression has type "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]", variable has type "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]")  [assignment]
+ psycopg/psycopg/connection_async.py:39: error: Incompatible import of "Lock" (imported name has type "type[lock]", local name has type "type[Lock]")  [assignment]
+ psycopg/psycopg/connection_async.py:56: error: Incompatible types in assignment (expression has type "type[KeyboardInterrupt]", variable has type "tuple[type[CancelledError], type[KeyboardInterrupt]]")  [assignment]
+ psycopg/psycopg/connection_async.py:447: error: Value of type "Coroutine[Any, Any, None]" must be used  [unused-coroutine]
+ psycopg/psycopg/connection_async.py:447: note: Are you missing an await?
+ psycopg/psycopg/connection_async.py:458: error: Value of type "Coroutine[Any, Any, None]" must be used  [unused-coroutine]
+ psycopg/psycopg/connection_async.py:458: note: Are you missing an await?
+ psycopg/psycopg/connection_async.py:469: error: Value of type "Coroutine[Any, Any, None]" must be used  [unused-coroutine]
+ psycopg/psycopg/connection_async.py:469: note: Are you missing an await?
+ psycopg/psycopg/connection_async.py:480: error: Value of type "Coroutine[Any, Any, None]" must be used  [unused-coroutine]
+ psycopg/psycopg/connection_async.py:480: note: Are you missing an await?
+ tests/pq/test_pgconn.py:45: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
+ tests/pool/test_sched_async.py:153: error: Incompatible types in assignment (expression has type "tuple[Any]", variable has type "tuple[()]")  [assignment]
+ psycopg_pool/psycopg_pool/pool_async.py:120: error: Expected iterable as variadic argument  [misc]
+ psycopg_pool/psycopg_pool/pool_async.py:120: error: Value of type "Coroutine[Any, Any, None]" must be used  [unused-coroutine]
+ psycopg_pool/psycopg_pool/pool_async.py:120: note: Are you missing an await?
+ psycopg_pool/psycopg_pool/pool_async.py:591: error: Value of type "Coroutine[Any, Any, AsyncCursor[Any]]" must be used  [unused-coroutine]
+ psycopg_pool/psycopg_pool/pool_async.py:591: note: Are you missing an await?
+ tests/types/test_enum.py:87: error: Need type annotation for "e"  [var-annotated]
+ tests/pool/test_pool_common_async.py:71: error: Incompatible types in assignment (expression has type "type[DeprecationWarning]", variable has type "type[RuntimeWarning]")  [assignment]

dulwich (https://github.com/dulwich/dulwich)
+ dulwich/refs.py:804: error: Unsupported right operand type for in ("None")  [operator]
+ dulwich/refs.py:807: error: "None" has no attribute "__delitem__"  [attr-defined]
+ dulwich/refs.py:809: error: "None" has no attribute "__delitem__"  [attr-defined]

antidote (https://github.com/Finistere/antidote)
+ tests/lib/injectable/test_injectable.py:121: error: Missing positional argument "x" in call to "method" of "MyService"  [call-arg]

mypy (https://github.com/python/mypy)
+ mypyc/ir/pprint.py:231: error: "PrimitiveOp" has no attribute "type_args"  [attr-defined]
+ mypyc/ir/pprint.py:232: error: "PrimitiveOp" has no attribute "type_args"  [attr-defined]

yarl (https://github.com/aio-libs/yarl)
+ yarl/_quoting_py.py:38:20: error: Incompatible return value type (got "None", expected "str")  [return-value]
+ yarl/_quoting_py.py:127:20: error: Incompatible return value type (got "None", expected "str")  [return-value]
+ yarl/_query.py:36:24: error: Argument 1 to "int" has incompatible type "Union[Union[str, int, float], Sequence[Union[str, int, float]]]"; expected "Union[str, Buffer, SupportsInt, SupportsIndex, SupportsTrunc]"  [arg-type]

urllib3 (https://github.com/urllib3/urllib3)
+ src/urllib3/util/ssl_.py:271: error: Argument 1 to "get" of "dict" has incompatible type "int | None"; expected "int"  [arg-type]
+ src/urllib3/util/ssl_.py:274: error: Argument 1 to "get" of "dict" has incompatible type "int | None"; expected "int"  [arg-type]
+ src/urllib3/util/ssl_.py:288: error: "None" not callable  [misc]
+ src/urllib3/util/ssl_.py:351: error: Returning Any from function declared to return "SSLContext"  [no-any-return]
+ src/urllib3/util/ssl_.py:501: error: "None" has no attribute "_validate_ssl_context_for_tls_in_tls"  [attr-defined]
+ src/urllib3/util/ssl_.py:502: error: Returning Any from function declared to return "SSLSocket | SSLTransport"  [no-any-return]
+ src/urllib3/util/ssl_.py:502: error: "None" not callable  [misc]
+ src/urllib3/contrib/emscripten/response.py:200: error: "None" has no attribute "_put_conn"  [attr-defined]
+ src/urllib3/contrib/emscripten/fetch.py:400: error: Argument 1 to "len" has incompatible type "Buffer"; expected "Sized"  [arg-type]
+ src/urllib3/contrib/emscripten/fetch.py:400: error: Argument 1 to "len" has incompatible type "None"; expected "Sized"  [arg-type]
+ src/urllib3/contrib/emscripten/fetch.py:402: error: Unsupported target for indexed assignment ("Buffer")  [index]
+ src/urllib3/contrib/emscripten/fetch.py:402: error: Value of type "None" is not indexable  [index]
+ src/urllib3/contrib/emscripten/fetch.py:406: error: Argument 1 to "len" has incompatible type "None"; expected "Sized"  [arg-type]
+ test/test_response.py:647: error: Incompatible types in assignment (expression has type "int", variable has type "HTTPResponse | None")  [assignment]
+ test/with_dummyserver/test_socketlevel.py:366: error: Need type annotation for "ssl_context"  [var-annotated]
+ test/with_dummyserver/test_socketlevel.py:385: error: Need type annotation for "context"  [var-annotated]
+ test/with_dummyserver/test_socketlevel.py:395: error: Need type annotation for "context"  [var-annotated]

pydantic (https://github.com/pydantic/pydantic)
+ pydantic/v1/typing.py:228: error: Incompatible return value type (got "GenericAlias", expected "type[Any]")  [return-value]
+ pydantic/v1/typing.py:398: error: Incompatible types in assignment (expression has type "ForwardRef", variable has type "type[Any]")  [assignment]
+ pydantic/v1/typing.py:400: error: Incompatible types in assignment (expression has type "ForwardRef", variable has type "type[Any]")  [assignment]
+ pydantic/v1/main.py:1084: error: Need type annotation for "extra"  [var-annotated]
+ pydantic/v1/main.py:1086: error: Incompatible types in assignment (expression has type "set[str]", variable has type "Never")  [assignment]
+ pydantic/v1/main.py:1090: error: Need type annotation for "f"  [var-annotated]
+ pydantic/fields.py:1054: error: Need type annotation for "k"  [var-annotated]

xarray (https://github.com/pydata/xarray)
+ xarray/core/npcompat.py: note: In function "isdtype":
+ xarray/core/npcompat.py:73: error: Argument 2 to "isinstance" has incompatible type "set[type | type[float64]]"; expected "_ClassInfo"  [arg-type]
+ xarray/core/indexes.py: note: In member "from_variables" of class "PandasIndex":
+ xarray/core/indexes.py:652: error: Need type annotation for "level"  [var-annotated]
+ xarray/core/indexes.py: note: At top level:
+ xarray/core/variable.py:899: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/core/variable.py:901: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/core/variable.py: note: In member "_pad_options_dim_to_index" of class "Variable":
+ xarray/core/variable.py:1118: error: Unsupported target for indexed assignment ("Mapping[Any, int | float | tuple[int, int] | tuple[float, float]]")  [index]
+ xarray/core/variable.py: note: At top level:
+ xarray/core/variable.py:2785: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/core/variable.py:2787: error: Unused "type: ignore" comment  [unused-ignore]
- xarray/core/computation.py: note: In function "apply_variable_ufunc":
- xarray/core/computation.py:848: error: "Never" has no attribute "ndim"  [attr-defined]
- xarray/core/computation.py:851: error: "Never" has no attribute "ndim"  [attr-defined]
+ xarray/coding/cftime_offsets.py: note: In function "date_range_like":
+ xarray/coding/cftime_offsets.py:1394: error: Left operand of "and" is always true  [redundant-expr]
+ xarray/core/groupby.py: note: In member "_flox_reduce" of class "GroupBy":
+ xarray/core/groupby.py:1001: error: "Never" object is not iterable  [misc]
+ xarray/core/groupby.py:1001: error: Cannot determine type of "k"  [has-type]
+ xarray/core/groupby.py:1001: error: Cannot determine type of "v"  [has-type]
+ xarray/core/groupby.py: note: At top level:
+ xarray/core/groupby.py:1002: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/core/dataset.py: note: In member "transpose" of class "Dataset":
+ xarray/core/dataset.py:6353: error: Need type annotation for "x"  [var-annotated]
+ xarray/core/dataset.py: note: At top level:
+ xarray/core/dataarray.py: note: In member "to_pandas" of class "DataArray":
+ xarray/core/dataarray.py:3919: error: Need type annotation for "values"  [var-annotated]
+ xarray/core/dataarray.py:3921: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "Never")  [assignment]
+ xarray/core/dataarray.py: note: At top level:
- xarray/tests/test_variable.py: note: In function "test_datetime_conversion":
- xarray/tests/test_variable.py:3020: error: If condition is always true  [redundant-expr]
- xarray/tests/test_variable.py: note: At top level:
- xarray/tests/test_variable.py: note: In function "test_timedelta_conversion":
- xarray/tests/test_variable.py:3090: error: If condition is always true  [redundant-expr]

streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/type_util.py: note: In function "to_bytes":
+ lib/streamlit/type_util.py:167:26: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes  [str-bytes-safe]
+ lib/streamlit/runtime/state/session_state.py: note: In member "__getitem__" of class "WStates":
+ lib/streamlit/runtime/state/session_state.py:124:21: error: Item "None" of "Optional[Any]" has no attribute "data"  [union-attr]
+ lib/streamlit/runtime/state/session_state.py:126:32: error: Argument 1 to "loads" has incompatible type "Optional[Any]"; expected "Union[str, bytes, bytearray]"  [arg-type]
+ lib/streamlit/runtime/runtime.py: note: In member "_loop_coroutine" of class "Runtime":
+ lib/streamlit/runtime/runtime.py:641:25: error: Statement is unreachable  [unreachable]
+ lib/tests/streamlit/watcher/local_sources_watcher_test.py:264:17: error: Module "streamlit.watcher.local_sources_watcher" does not explicitly export attribute "get_default_path_watcher_class"  [attr-defined]
+ lib/tests/streamlit/stop_test.py:25:16: error: Item "None" of "Optional[ScriptRequests]" has no attribute "_state"  [union-attr]

spark (https://github.com/apache/spark)
+ python/pyspark/core/context.py:818: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/core/context.py:819: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/core/context.py:819: error: Need type annotation for "start0"  [var-annotated]
+ python/pyspark/core/context.py:819: note: Error code "var-annotated" not covered by "type: ignore" comment
+ python/pyspark/sql/types.py:1269: error: Incompatible types in assignment (expression has type "DataType | None", variable has type "DataType")  [assignment]
+ python/pyspark/sql/types.py:1301: error: Incompatible return value type (got "StructType", expected "StructField")  [return-value]
+ python/pyspark/sql/types.py:1301: error: Argument 1 to "StructType" has incompatible type "StructField"; expected "list[StructField] | None"  [arg-type]
+ python/pyspark/sql/types.py:1479: error: Return value expected  [return-value]
+ python/pyspark/sql/types.py:1497: error: Need type annotation for "d"  [var-annotated]
+ python/pyspark/sql/types.py:1523: error: Return value expected  [return-value]
+ python/pyspark/sql/readwriter.py:845: error: Function is missing a type annotation  [no-untyped-def]
+ python/pyspark/sql/readwriter.py:853: error: Need type annotation for "keyed"  [var-annotated]
+ python/pyspark/sql/readwriter.py:854: error: Incompatible types in assignment (expression has type "bool", variable has type "Never")  [assignment]
+ python/pyspark/sql/readwriter.py:855: error: Need type annotation for "jrdd"  [var-annotated]
+ python/pyspark/sql/readwriter.py:855: error: Item "None" of "Any | None" has no attribute "BytesToString"  [union-attr]
+ python/pyspark/sql/readwriter.py:861: error: Item "None" of "Any | None" has no attribute "Encoders"  [union-attr]
+ python/pyspark/sql/streaming/state.py:224: error: Incompatible types in assignment (expression has type "float", variable has type "int")  [assignment]
+ python/pyspark/sql/pandas/conversion.py:712: error: List comprehension has incompatible type List[TimestampType | None]; expected List[DataType]  [misc]
+ python/pyspark/sql/pandas/conversion.py:715: error: PandasDataFrameLike? has no attribute "dtypes"  [attr-defined]
+ python/pyspark/sql/session.py:1538: error: Need type annotation for "x"  [var-annotated]
+ python/pyspark/sql/session.py:1538: error: Incompatible types in assignment (expression has type "list[Never]", variable has type "AtomicType | StructType | str | None")  [assignment]
+ python/pyspark/sql/classic/dataframe.py:1609: error: "tuple[dict[str, Column]]" has no attribute "keys"  [attr-defined]
+ python/pyspark/sql/classic/dataframe.py:1610: error: "tuple[dict[str, Column]]" has no attribute "values"  [attr-defined]
+ python/pyspark/pandas/generic.py:484: error: "Never" object is not iterable  [misc]
+ python/pyspark/pandas/generic.py:485: error: Cannot determine type of "target"  [has-type]
+ python/pyspark/pandas/generic.py:486: error: Cannot determine type of "target"  [has-type]
+ python/pyspark/pandas/generic.py:487: error: Cannot determine type of "target"  [has-type]
+ python/pyspark/pandas/generic.py:788: error: Need type annotation for "new_name"  [var-annotated]
+ python/pyspark/pandas/frame.py:8453: error: Incompatible types in assignment (expression has type "str | list[Any]", variable has type "list[Any] | dict[Any, Any]")  [assignment]
+ python/pyspark/pandas/indexes/base.py:2088: error: Need type annotation for "item"  [var-annotated]
+ python/pyspark/pandas/data_type_ops/complex_ops.py:56: error: "DataType" has no attribute "elementType"  [attr-defined]
+ python/pyspark/sql/plot/plotly.py:173: error: Need type annotation for "i"  [var-annotated]
+ python/pyspark/sql/connect/dataframe.py:885: error: "tuple[dict[str, Column]]" has no attribute "items"  [attr-defined]
+ python/pyspark/sql/connect/client/core.py:1751: error: Unexpected keyword argument "message_paramters" for "PySparkValueError"; did you mean "messageParameters"?  [call-arg]
+ python/pyspark/errors/exceptions/base.py:35: note: "PySparkValueError" defined here
+ python/pyspark/sql/worker/write_into_data_source.py:206: error: Need type annotation for "res"  [var-annotated]
+ python/pyspark/sql/worker/write_into_data_source.py:208: error: Incompatible types in assignment (expression has type "WriterCommitMessage", variable has type "Never")  [assignment]
+ python/pyspark/streaming/context.py:171: error: Need type annotation for "activePythonContextJavaId"  [var-annotated]
+ python/pyspark/streaming/context.py:172: error: Need type annotation for "activeJvmContextOption"  [var-annotated]
+ python/pyspark/streaming/context.py:390: error: Argument 1 to "parallelize" of "SparkContext" has incompatible type "RDD[T]"; expected "Iterable[T]"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:272: error: Too many arguments for "MLReadable"  [call-arg]
+ python/pyspark/ml/connect/readwrite.py:275: error: "RL" has no attribute "_resetUid"  [attr-defined]
+ python/pyspark/ml/connect/readwrite.py:277: error: "RL" has no attribute "_set"  [attr-defined]
+ python/pyspark/ml/connect/readwrite.py:286: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:287: error: Incompatible return value type (got "Pipeline", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:293: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:294: error: Incompatible return value type (got "PipelineModel", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:300: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:301: error: Incompatible return value type (got "CrossValidator", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:306: error: Argument 1 to "CrossValidatorModelReader" has incompatible type "type[CrossValidator]"; expected "type[CrossValidatorModel]"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:307: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:308: error: Incompatible return value type (got "CrossValidatorModel", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:314: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:315: error: Incompatible return value type (got "TrainValidationSplit", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:320: error: Incompatible types in assignment (expression has type "TrainValidationSplitModelReader", variable has type "TrainValidationSplitReader")  [assignment]
+ python/pyspark/ml/connect/readwrite.py:321: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:322: error: Incompatible return value type (got "TrainValidationSplit", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:328: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:329: error: Incompatible return value type (got "OneVsRest[Any]", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:335: error: Argument 1 to "session" of "BaseReadWrite" has incompatible type "pyspark.sql.connect.session.SparkSession"; expected "pyspark.sql.session.SparkSession"  [arg-type]
+ python/pyspark/ml/connect/readwrite.py:336: error: Incompatible return value type (got "OneVsRestModel", expected "RL")  [return-value]
+ python/pyspark/ml/connect/readwrite.py:356: error: Incompatible types in assignment (expression has type "PowerIterationClustering", variable has type "RL")  [assignment]
+ python/pyspark/ml/connect/readwrite.py:357: error: "RL" has no attribute "_resetUid"  [attr-defined]
+ python/pyspark/ml/connect/readwrite.py:359: error: "RL" has no attribute "_set"  [attr-defined]
+ python/pyspark/ml/connect/readwrite.py:360: error: Unused "type: ignore" comment  [unused-ignore]
+ python/pyspark/mllib/linalg/__init__.py:1104: error: Incompatible return value type (got "SparseVector", expected "DenseVector")  [return-value]

pip (https://github.com/pypa/pip)
+ src/pip/_internal/resolution/legacy/resolver.py:454: error: Argument 2 to "prepare_installed_requirement" of "RequirementPreparer" has incompatible type "str | None"; expected "str"  [arg-type]
+ src/pip/_internal/resolution/legacy/resolver.py:476: error: Item "None" of "Link | None" has no attribute "scheme"  [union-attr]

websockets (https://github.com/aaugustin/websockets)
+ src/websockets/legacy/protocol.py:1077: error: Argument 1 to "join" of "str" has incompatible type "list[str | bytes]"; expected "Iterable[str]"  [arg-type]
+ src/websockets/legacy/protocol.py:1077: error: Argument 1 to "join" of "bytes" has incompatible type "list[str | bytes]"; expected "Iterable[Buffer]"  [arg-type]

operator (https://github.com/canonical/operator)
- ops/framework.py:619: error: Unused "type: ignore" comment  [unused-ignore]

sympy (https://github.com/sympy/sympy)
+ sympy/core/add.py:227: error: Need type annotation for "s"  [var-annotated]
+ sympy/integrals/manualintegrate.py:1949: error: Need type annotation for "arg"  [var-annotated]

pylint (https://github.com/pycqa/pylint)
+ pylint/checkers/base_checker.py:168: error: Need type annotation for "existing_ids" (hint: "existing_ids: list[<type>] = ...")  [var-annotated]

sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/util/osutil.py: note: In function "_relative_path":
+ sphinx/util/osutil.py:186:12: error: Unexpected keyword argument "walk_up" for "relative_to" of "PurePath"  [call-arg]
+ note: "relative_to" of "PurePath" defined here
+ sphinx/util/nodes.py: note: In function "_deepcopy":
+ sphinx/util/nodes.py:748:30: error: Incompatible types in assignment (expression has type "str", variable has type "int")  [assignment]
+ sphinx/transforms/__init__.py: note: In member "apply_transforms" of class "SphinxTransformer":
+ sphinx/transforms/__init__.py:103:33: error: Incompatible types in assignment (expression has type "Node", variable has type "document")  [assignment]
+ sphinx/environment/collectors/toctree.py: note: In function "process_doc":
+ sphinx/environment/collectors/toctree.py:132:29: error: Need type annotation for "sig_node"  [var-annotated]
+ sphinx/environment/collectors/toctree.py:142:39: error: Need type annotation for "ids"  [var-annotated]
+ sphinx/environment/collectors/toctree.py:162:42: error: Need type annotation for "parent"  [var-annotated]

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/_internal/__init__.py:83: error: Statement is unreachable  [unreachable]
+ tanjun/_internal/__init__.py:83: error: Returning Any from function declared to return "bool"  [no-any-return]
+ tanjun/parsing.py:588: error: Need type annotation for "value"  [var-annotated]
- tanjun/parsing.py:588: error: "Never" has no attribute "__iter__" (not iterable)  [attr-defined]
- tanjun/parsing.py:1632: error: Statement is unreachable  [unreachable]
- tanjun/parsing.py:1642: error: Statement is unreachable  [unreachable]
- tanjun/dependencies/limiters.py:851: error: "Never" has no attribute "unlock"  [attr-defined]
+ tanjun/dependencies/limiters.py:852: error: Statement is unreachable  [unreachable]
- tanjun/checks.py:1026: error: Statement is unreachable  [unreachable]
- tanjun/checks.py:1140: error: Statement is unreachable  [unreachable]
- tanjun/commands/slash.py:820: error: Statement is unreachable  [unreachable]
- tanjun/commands/slash.py:1787: error: Statement is unreachable  [unreachable]
- tanjun/clients.py:2294: error: "Never" has no attribute "__iter__" (not iterable)  [attr-defined]
+ tanjun/clients.py:2295: error: Statement is unreachable  [unreachable]
+ tanjun/clients.py:2296: error: Statement is unreachable  [unreachable]
- tanjun/annotations.py:1448: error: Statement is unreachable  [unreachable]
- tanjun/annotations.py:1453: error: Statement is unreachable  [unreachable]
- tanjun/annotations.py:1458: error: Statement is unreachable  [unreachable]
- tanjun/annotations.py:1466: error: Statement is unreachable  [unreachable]
+ tanjun/annotations.py:1449: error: Value of type variable "_ChoiceT" of "Choices" cannot be "_EnumT"  [type-var]
+ tanjun/annotations.py:1453: error: Incompatible types in assignment (expression has type "type[int]", variable has type "type[float]")  [assignment]
+ tanjun/annotations.py:1454: error: Value of type variable "_ChoiceT" of "Choices" cannot be "_EnumT"  [type-var]
+ tanjun/annotations.py:1455: error: Incompatible types in assignment (expression has type "_IntEnumConverter", variable has type "_FloatEnumConverter")  [assignment]
+ tanjun/annotations.py:1458: error: Incompatible types in assignment (expression has type "type[str]", variable has type "type[float]")  [assignment]
+ tanjun/annotations.py:1459: error: Value of type variable "_ChoiceT" of "Choices" cannot be "_EnumT"  [type-var]

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

freqtrade (https://github.com/freqtrade/freqtrade)
+ freqtrade/rpc/telegram.py:558: error: TypedDict "RPCStrategyMsg" has no key "status"  [typeddict-item]
+ freqtrade/rpc/telegram.py:558: error: TypedDict "RPCWhitelistMsg" has no key "status"  [typeddict-item]
+ freqtrade/rpc/telegram.py:558: error: TypedDict "RPCAnalyzedDFMsg" has no key "status"  [typeddict-item]
+ freqtrade/rpc/telegram.py:558: error: TypedDict "RPCNewCandleMsg" has no key "status"  [typeddict-item]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/test_frame.py:3671: error: All overload variants of "select_dtypes" of "DataFrame" require at least one argument  [call-overload]
+ tests/test_frame.py:3671: note: Possible overload variants:

... (truncated 486 lines) ...```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant