Skip to content

Comments

[ty] Fix assert_type diagnostic messages#23342

Merged
AlexWaygood merged 3 commits intomainfrom
david/fix-assert-type-messages
Feb 16, 2026
Merged

[ty] Fix assert_type diagnostic messages#23342
AlexWaygood merged 3 commits intomainfrom
david/fix-assert-type-messages

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Feb 16, 2026

Summary

Fix the concise message of assert_type diagnostics (order of inferred/asserted type was reversed).

Test Plan

Updated tests

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Feb 16, 2026
Comment on lines 9 to 27
{
"range": {
"start": {
"line": 0,
"character": 0
},
"end": {
"line": 0,
"character": 11
}
},
"severity": 2,
"code": "undefined-reveal",
"codeDescription": {
"href": "https://ty.dev/rules#undefined-reveal"
},
"source": "ty",
"message": "`reveal_type` used without importing it"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cargo insta wanted me to change this. Any idea why that happens, @dhruvmanila?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I'll revert this and hope the tests pass without this change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, possibly related to #23342 (comment) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, seems unrelated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, can you say what did you revert in order for cargo insta to not complain?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff above is what cargo insta suggested I should edit. I then reverted it. Maybe something that's local to my setup.

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

Typing conformance results

No changes detected ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

Memory usage report

Memory usage unchanged ✅

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I kept on seeing these and thinking that they looked odd

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

mypy_primer results

Changes were detected when running on open source projects
spack (https://github.com/spack/spack)
- lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | Unknown | str | ... omitted 3 union elements]`
+ lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | str | bytes | ... omitted 3 union elements]`
- lib/spack/spack/llnl/util/filesystem.py:1668:35: error[invalid-argument-type] Argument to function `exists` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Unknown | Sized`
+ lib/spack/spack/llnl/util/filesystem.py:1668:35: error[invalid-argument-type] Argument to function `exists` is incorrect: Expected `int | str | bytes | PathLike[str] | PathLike[bytes]`, found `Sized | Unknown`
- lib/spack/spack/llnl/util/filesystem.py:1674:25: error[invalid-argument-type] Argument to function `move` is incorrect: Expected `str | PathLike[str]`, found `Unknown | Sized`
+ lib/spack/spack/llnl/util/filesystem.py:1674:25: error[invalid-argument-type] Argument to function `move` is incorrect: Expected `str | PathLike[str]`, found `Sized | Unknown`
- lib/spack/spack/verify_libraries.py:164:46: error[invalid-argument-type] Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `Unknown | bytes | str | PathLike[str] | PathLike[bytes]`
+ lib/spack/spack/verify_libraries.py:164:46: error[invalid-argument-type] Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `bytes | Unknown | str | PathLike[str] | PathLike[bytes]`
- lib/spack/spack/verify_libraries.py:165:17: error[invalid-assignment] Invalid subscript assignment with key of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` and value of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
+ lib/spack/spack/verify_libraries.py:165:17: error[invalid-assignment] Invalid subscript assignment with key of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` and value of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
- lib/spack/spack/verify_libraries.py:170:57: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
+ lib/spack/spack/verify_libraries.py:170:57: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`
- lib/spack/spack/verify_libraries.py:170:69: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
+ lib/spack/spack/verify_libraries.py:170:69: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`

starlette (https://github.com/encode/starlette)
- tests/test_config.py:21:5: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown`
+ tests/test_config.py:21:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `str | None`

pytest (https://github.com/pytest-dev/pytest)
- testing/typing_checks.py:59:5: error[type-assertion-failure] Type `Literal["setup", "call", "teardown"]` does not match asserted type `str | None`
+ testing/typing_checks.py:59:5: error[type-assertion-failure] Type `str | None` does not match asserted type `Literal["setup", "call", "teardown"]`
- testing/typing_checks.py:60:5: error[type-assertion-failure] Type `tuple[str, int | None, str]` does not match asserted type `tuple[str, int | None, str] | None`
+ testing/typing_checks.py:60:5: error[type-assertion-failure] Type `tuple[str, int | None, str] | None` does not match asserted type `tuple[str, int | None, str]`
- testing/typing_raises_group.py:237:5: error[type-assertion-failure] Type `((Unknown, /) -> bool) | None` does not match asserted type `Unknown | ((Unknown, /) -> bool) | None`
+ testing/typing_raises_group.py:237:5: error[type-assertion-failure] Type `Unknown | ((Unknown, /) -> bool) | None` does not match asserted type `((Unknown, /) -> bool) | None`

pylint (https://github.com/pycqa/pylint)
- pylint/checkers/refactoring/implicit_booleaness_checker.py:219:24: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:219:24: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:219:62: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:219:62: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:222:27: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `(Unknown & ~None) | str`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:222:27: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | (Unknown & ~None)`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:236:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:236:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`
- pylint/checkers/refactoring/implicit_booleaness_checker.py:239:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `Unknown | str`
+ pylint/checkers/refactoring/implicit_booleaness_checker.py:239:29: error[unresolved-attribute] Attribute `as_string` is not defined on `str` in union `str | Unknown`

mypy-protobuf (https://github.com/dropbox/mypy-protobuf)
- test/test_generated_mypy.py:493:5: error[type-assertion-failure] Type `Email` does not match asserted type `Unknown`
+ test/test_generated_mypy.py:493:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Email`
- test/test_generated_mypy.py:494:5: error[type-assertion-failure] Type `ScalarMap[Any, Email]` does not match asserted type `Unknown`
+ test/test_generated_mypy.py:494:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `ScalarMap[Any, Email]`
- test/test_generated_mypy.py:504:5: error[type-assertion-failure] Type `Email` does not match asserted type `Unknown`
+ test/test_generated_mypy.py:504:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Email`
- test/test_generated_mypy.py:505:5: error[type-assertion-failure] Type `ScalarMap[Any, Email]` does not match asserted type `Unknown`
+ test/test_generated_mypy.py:505:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `ScalarMap[Any, Email]`

pydantic (https://github.com/pydantic/pydantic)
- pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | ((dict[str, Divergent], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
+ pydantic/_internal/_core_metadata.py:87:54: error[invalid-assignment] Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | ((dict[str, int | float | str | ... omitted 3 union elements], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
- pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:949:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:989:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1032:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1072:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1115:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1154:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
+ pydantic/fields.py:1194:5: error[invalid-parameter-default] Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
- pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`, found `Top[dict[Unknown, Unknown]] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`
+ pydantic/fields.py:1573:13: error[invalid-argument-type] Argument is incorrect: Expected `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`, found `Top[dict[Unknown, Unknown]] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`

mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/tests/config/config_options_tests.py:72:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:72:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:95:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:95:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:114:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:114:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:122:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:122:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:136:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:136:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:300:9: error[type-assertion-failure] Type `_IpAddressValue` does not match asserted type `Unknown | _IpAddressValue`
+ mkdocs/tests/config/config_options_tests.py:300:9: error[type-assertion-failure] Type `Unknown | _IpAddressValue` does not match asserted type `_IpAddressValue`
- mkdocs/tests/config/config_options_tests.py:301:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:301:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:302:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ mkdocs/tests/config/config_options_tests.py:302:9: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- mkdocs/tests/config/config_options_tests.py:401:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:401:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:461:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:461:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:490:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:490:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:491:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:491:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:533:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:533:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:587:9: error[type-assertion-failure] Type `list[int]` does not match asserted type `Unknown | list[int]`
+ mkdocs/tests/config/config_options_tests.py:587:9: error[type-assertion-failure] Type `Unknown | list[int]` does not match asserted type `list[int]`
- mkdocs/tests/config/config_options_tests.py:612:9: error[type-assertion-failure] Type `list[int]` does not match asserted type `Unknown | list[int]`
+ mkdocs/tests/config/config_options_tests.py:612:9: error[type-assertion-failure] Type `Unknown | list[int]` does not match asserted type `list[int]`
- mkdocs/tests/config/config_options_tests.py:636:9: error[type-assertion-failure] Type `list[str] | None` does not match asserted type `Unknown | list[str] | None`
+ mkdocs/tests/config/config_options_tests.py:636:9: error[type-assertion-failure] Type `Unknown | list[str] | None` does not match asserted type `list[str] | None`
- mkdocs/tests/config/config_options_tests.py:650:9: error[type-assertion-failure] Type `list[int | None]` does not match asserted type `Unknown | list[int | None]`
+ mkdocs/tests/config/config_options_tests.py:650:9: error[type-assertion-failure] Type `Unknown | list[int | None]` does not match asserted type `list[int | None]`
- mkdocs/tests/config/config_options_tests.py:694:9: error[type-assertion-failure] Type `list[ExtraScriptValue | str]` does not match asserted type `Unknown | list[ExtraScriptValue | str]`
+ mkdocs/tests/config/config_options_tests.py:694:9: error[type-assertion-failure] Type `Unknown | list[ExtraScriptValue | str]` does not match asserted type `list[ExtraScriptValue | str]`
- mkdocs/tests/config/config_options_tests.py:712:9: error[type-assertion-failure] Type `list[ExtraScriptValue | str]` does not match asserted type `Unknown | list[ExtraScriptValue | str]`
+ mkdocs/tests/config/config_options_tests.py:712:9: error[type-assertion-failure] Type `Unknown | list[ExtraScriptValue | str]` does not match asserted type `list[ExtraScriptValue | str]`
- mkdocs/tests/config/config_options_tests.py:753:9: error[type-assertion-failure] Type `dict[str, int]` does not match asserted type `Unknown | dict[str, int]`
+ mkdocs/tests/config/config_options_tests.py:753:9: error[type-assertion-failure] Type `Unknown | dict[str, int]` does not match asserted type `dict[str, int]`
- mkdocs/tests/config/config_options_tests.py:778:9: error[type-assertion-failure] Type `dict[str, int]` does not match asserted type `Unknown | dict[str, int]`
+ mkdocs/tests/config/config_options_tests.py:778:9: error[type-assertion-failure] Type `Unknown | dict[str, int]` does not match asserted type `dict[str, int]`
- mkdocs/tests/config/config_options_tests.py:802:9: error[type-assertion-failure] Type `dict[str, str] | None` does not match asserted type `Unknown | dict[str, str] | None`
+ mkdocs/tests/config/config_options_tests.py:802:9: error[type-assertion-failure] Type `Unknown | dict[str, str] | None` does not match asserted type `dict[str, str] | None`
- mkdocs/tests/config/config_options_tests.py:816:9: error[type-assertion-failure] Type `dict[str, int | None]` does not match asserted type `Unknown | dict[str, int | None]`
+ mkdocs/tests/config/config_options_tests.py:816:9: error[type-assertion-failure] Type `Unknown | dict[str, int | None]` does not match asserted type `dict[str, int | None]`
- mkdocs/tests/config/config_options_tests.py:862:17: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:862:17: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:874:17: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:874:17: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:886:17: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:886:17: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:1017:9: error[type-assertion-failure] Type `list[str]` does not match asserted type `Unknown | list[str]`
+ mkdocs/tests/config/config_options_tests.py:1017:9: error[type-assertion-failure] Type `Unknown | list[str]` does not match asserted type `list[str]`
- mkdocs/tests/config/config_options_tests.py:1043:9: error[type-assertion-failure] Type `list[str]` does not match asserted type `Unknown | list[str]`
+ mkdocs/tests/config/config_options_tests.py:1043:9: error[type-assertion-failure] Type `Unknown | list[str]` does not match asserted type `list[str]`
- mkdocs/tests/config/config_options_tests.py:1124:9: error[type-assertion-failure] Type `Theme` does not match asserted type `Unknown | Theme`
+ mkdocs/tests/config/config_options_tests.py:1124:9: error[type-assertion-failure] Type `Unknown | Theme` does not match asserted type `Theme`
- mkdocs/tests/config/config_options_tests.py:1125:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:1125:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:1440:9: error[type-assertion-failure] Type `Sub` does not match asserted type `Unknown | Sub`
+ mkdocs/tests/config/config_options_tests.py:1440:9: error[type-assertion-failure] Type `Unknown | Sub` does not match asserted type `Sub`
- mkdocs/tests/config/config_options_tests.py:1442:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:1442:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:1462:9: error[type-assertion-failure] Type `list[Sub]` does not match asserted type `Unknown | list[Sub]`
+ mkdocs/tests/config/config_options_tests.py:1462:9: error[type-assertion-failure] Type `Unknown | list[Sub]` does not match asserted type `list[Sub]`
- mkdocs/tests/config/config_options_tests.py:1464:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ mkdocs/tests/config/config_options_tests.py:1464:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- mkdocs/tests/config/config_options_tests.py:1481:9: error[type-assertion-failure] Type `list[Sub] | None` does not match asserted type `Unknown | list[Sub] | None`
+ mkdocs/tests/config/config_options_tests.py:1481:9: error[type-assertion-failure] Type `Unknown | list[Sub] | None` does not match asserted type `list[Sub] | None`
- mkdocs/tests/config/config_options_tests.py:1484:9: error[type-assertion-failure] Type `int | None` does not match asserted type `Unknown | int | None`
+ mkdocs/tests/config/config_options_tests.py:1484:9: error[type-assertion-failure] Type `Unknown | int | None` does not match asserted type `int | None`
- mkdocs/tests/config/config_options_tests.py:1513:9: error[type-assertion-failure] Type `list[Sub]` does not match asserted type `Unknown | list[Sub]`
+ mkdocs/tests/config/config_options_tests.py:1513:9: error[type-assertion-failure] Type `Unknown | list[Sub]` does not match asserted type `list[Sub]`
- mkdocs/tests/config/config_options_tests.py:1515:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ mkdocs/tests/config/config_options_tests.py:1515:9: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- mkdocs/tests/config/config_options_tests.py:1542:9: error[type-assertion-failure] Type `list[Sub]` does not match asserted type `Unknown | list[Sub]`
+ mkdocs/tests/config/config_options_tests.py:1542:9: error[type-assertion-failure] Type `Unknown | list[Sub]` does not match asserted type `list[Sub]`
- mkdocs/tests/config/config_options_tests.py:1669:9: error[type-assertion-failure] Type `list[str]` does not match asserted type `Unknown | list[str]`
+ mkdocs/tests/config/config_options_tests.py:1669:9: error[type-assertion-failure] Type `Unknown | list[str]` does not match asserted type `list[str]`
- mkdocs/tests/config/config_options_tests.py:1670:9: error[type-assertion-failure] Type `dict[str, dict[Unknown, Unknown]]` does not match asserted type `Unknown | dict[str, dict[Unknown, Unknown]]`
+ mkdocs/tests/config/config_options_tests.py:1670:9: error[type-assertion-failure] Type `Unknown | dict[str, dict[Unknown, Unknown]]` does not match asserted type `dict[str, dict[Unknown, Unknown]]`
- mkdocs/tests/config/config_options_tests.py:1971:9: error[type-assertion-failure] Type `PluginCollection` does not match asserted type `Unknown | PluginCollection`
+ mkdocs/tests/config/config_options_tests.py:1971:9: error[type-assertion-failure] Type `Unknown | PluginCollection` does not match asserted type `PluginCollection`
- mkdocs/tests/config/config_options_tests.py:1976:9: error[type-assertion-failure] Type `BasePlugin[Unknown]` does not match asserted type `Unknown | BasePlugin[Unknown]`
+ mkdocs/tests/config/config_options_tests.py:1976:9: error[type-assertion-failure] Type `Unknown | BasePlugin[Unknown]` does not match asserted type `BasePlugin[Unknown]`
- mkdocs/tests/config/config_options_tests.py:2405:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ mkdocs/tests/config/config_options_tests.py:2405:9: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- mkdocs/tests/config/config_options_tests.py:2407:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/config/config_options_tests.py:2407:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`
- mkdocs/tests/config/config_options_tests.py:2409:9: error[type-assertion-failure] Type `list[str]` does not match asserted type `Unknown | list[str]`
+ mkdocs/tests/config/config_options_tests.py:2409:9: error[type-assertion-failure] Type `Unknown | list[str]` does not match asserted type `list[str]`
- mkdocs/tests/config/config_options_tests.py:2418:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ mkdocs/tests/config/config_options_tests.py:2418:9: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- mkdocs/tests/plugin_tests.py:78:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ mkdocs/tests/plugin_tests.py:78:9: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- mkdocs/tests/plugin_tests.py:80:9: error[type-assertion-failure] Type `str | None` does not match asserted type `Unknown | str | None`
+ mkdocs/tests/plugin_tests.py:80:9: error[type-assertion-failure] Type `Unknown | str | None` does not match asserted type `str | None`

psycopg (https://github.com/psycopg/psycopg)
- tests/pool/test_pool.py:72:5: error[type-assertion-failure] Type `MyConnection[MyRow]` does not match asserted type `Unknown`
+ tests/pool/test_pool.py:72:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[MyRow]`
- tests/pool/test_pool.py:73:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool.py:73:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool.py:82:5: error[type-assertion-failure] Type `MyConnection[tuple[Any, ...]]` does not match asserted type `Unknown`
+ tests/pool/test_pool.py:82:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[tuple[Any, ...]]`
- tests/pool/test_pool.py:83:5: error[type-assertion-failure] Type `tuple[Any, ...]` does not match asserted type `Unknown`
+ tests/pool/test_pool.py:83:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `tuple[Any, ...]`
- tests/pool/test_pool.py:105:5: error[type-assertion-failure] Type `MyConnection` does not match asserted type `Unknown`
+ tests/pool/test_pool.py:105:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection`
- tests/pool/test_pool.py:106:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool.py:106:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool_async.py:70:5: error[type-assertion-failure] Type `MyConnection[MyRow]` does not match asserted type `Unknown`
+ tests/pool/test_pool_async.py:70:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[MyRow]`
- tests/pool/test_pool_async.py:71:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool_async.py:71:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool_async.py:82:5: error[type-assertion-failure] Type `MyConnection[tuple[Any, ...]]` does not match asserted type `Unknown`
+ tests/pool/test_pool_async.py:82:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[tuple[Any, ...]]`
- tests/pool/test_pool_async.py:83:5: error[type-assertion-failure] Type `tuple[Any, ...]` does not match asserted type `Unknown`
+ tests/pool/test_pool_async.py:83:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `tuple[Any, ...]`
- tests/pool/test_pool_async.py:105:5: error[type-assertion-failure] Type `MyConnection` does not match asserted type `Unknown`
+ tests/pool/test_pool_async.py:105:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection`
- tests/pool/test_pool_async.py:106:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool_async.py:106:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool_null.py:66:5: error[type-assertion-failure] Type `MyConnection[MyRow]` does not match asserted type `Unknown`
+ tests/pool/test_pool_null.py:66:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[MyRow]`
- tests/pool/test_pool_null.py:67:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool_null.py:67:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool_null.py:76:5: error[type-assertion-failure] Type `MyConnection[tuple[Any, ...]]` does not match asserted type `Unknown`
+ tests/pool/test_pool_null.py:76:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[tuple[Any, ...]]`
- tests/pool/test_pool_null.py:77:5: error[type-assertion-failure] Type `tuple[Any, ...]` does not match asserted type `Unknown`
+ tests/pool/test_pool_null.py:77:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `tuple[Any, ...]`
- tests/pool/test_pool_null.py:98:5: error[type-assertion-failure] Type `MyConnection` does not match asserted type `Unknown`
+ tests/pool/test_pool_null.py:98:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection`
- tests/pool/test_pool_null.py:99:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool_null.py:99:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool_null_async.py:65:5: error[type-assertion-failure] Type `MyConnection[MyRow]` does not match asserted type `Unknown`
+ tests/pool/test_pool_null_async.py:65:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[MyRow]`
- tests/pool/test_pool_null_async.py:66:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool_null_async.py:66:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`
- tests/pool/test_pool_null_async.py:77:5: error[type-assertion-failure] Type `MyConnection[tuple[Any, ...]]` does not match asserted type `Unknown`
+ tests/pool/test_pool_null_async.py:77:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection[tuple[Any, ...]]`
- tests/pool/test_pool_null_async.py:78:5: error[type-assertion-failure] Type `tuple[Any, ...]` does not match asserted type `Unknown`
+ tests/pool/test_pool_null_async.py:78:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `tuple[Any, ...]`
- tests/pool/test_pool_null_async.py:97:5: error[type-assertion-failure] Type `MyConnection` does not match asserted type `Unknown`
+ tests/pool/test_pool_null_async.py:97:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyConnection`
- tests/pool/test_pool_null_async.py:98:5: error[type-assertion-failure] Type `MyRow` does not match asserted type `Unknown`
+ tests/pool/test_pool_null_async.py:98:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `MyRow`

meson (https://github.com/mesonbuild/meson)
- mesonbuild/dependencies/cuda.py:137:76: error[invalid-argument-type] Argument to function `version_compare_many` is incorrect: Expected `str`, found `str | None | Unknown`
+ mesonbuild/dependencies/cuda.py:137:76: error[invalid-argument-type] Argument to function `version_compare_many` is incorrect: Expected `str`, found `Unknown | str | None`

trio (https://github.com/python-trio/trio)
- src/trio/_core/_tests/type_tests/run.py:50:1: error[type-assertion-failure] Type `str` does not match asserted type `str | int`
+ src/trio/_core/_tests/type_tests/run.py:50:1: error[type-assertion-failure] Type `str | int` does not match asserted type `str`
- src/trio/_core/_tests/type_tests/run.py:51:1: error[type-assertion-failure] Type `int` does not match asserted type `str | int`
+ src/trio/_core/_tests/type_tests/run.py:51:1: error[type-assertion-failure] Type `str | int` does not match asserted type `int`
- src/trio/_tests/type_tests/check_wraps.py:9:5: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ src/trio/_tests/type_tests/check_wraps.py:9:5: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- src/trio/_tests/type_tests/path.py:66:5: error[type-assertion-failure] Type `stat_result` does not match asserted type `Unknown | stat_result`
+ src/trio/_tests/type_tests/path.py:66:5: error[type-assertion-failure] Type `Unknown | stat_result` does not match asserted type `stat_result`
- src/trio/_tests/type_tests/path.py:67:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:67:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:68:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:68:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:69:5: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:69:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:71:9: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:71:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:73:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ src/trio/_tests/type_tests/path.py:73:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- src/trio/_tests/type_tests/path.py:74:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:74:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:75:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:75:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:79:9: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:79:9: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:80:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:80:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:81:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:81:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:82:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:82:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:83:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:83:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:84:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:84:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:86:9: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:86:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:88:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:88:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:89:5: error[type-assertion-failure] Type `stat_result` does not match asserted type `Unknown | stat_result`
+ src/trio/_tests/type_tests/path.py:89:5: error[type-assertion-failure] Type `Unknown | stat_result` does not match asserted type `stat_result`
- src/trio/_tests/type_tests/path.py:90:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:90:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:93:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ src/trio/_tests/type_tests/path.py:93:9: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- src/trio/_tests/type_tests/path.py:94:5: error[type-assertion-failure] Type `bytes` does not match asserted type `Unknown | bytes`
+ src/trio/_tests/type_tests/path.py:94:5: error[type-assertion-failure] Type `Unknown | bytes` does not match asserted type `bytes`
- src/trio/_tests/type_tests/path.py:95:5: error[type-assertion-failure] Type `str` does not match asserted type `Unknown | str`
+ src/trio/_tests/type_tests/path.py:95:5: error[type-assertion-failure] Type `Unknown | str` does not match asserted type `str`
- src/trio/_tests/type_tests/path.py:96:5: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:96:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:97:5: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:97:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:98:5: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:98:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:99:5: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:99:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:101:9: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:101:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:103:9: error[type-assertion-failure] Type `Path` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:103:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `Path`
- src/trio/_tests/type_tests/path.py:104:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:104:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:105:5: error[type-assertion-failure] Type `bool` does not match asserted type `Unknown | bool`
+ src/trio/_tests/type_tests/path.py:105:5: error[type-assertion-failure] Type `Unknown | bool` does not match asserted type `bool`
- src/trio/_tests/type_tests/path.py:106:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:106:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:107:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:107:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:108:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:108:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:109:5: error[type-assertion-failure] Type `None` does not match asserted type `Unknown | None`
+ src/trio/_tests/type_tests/path.py:109:5: error[type-assertion-failure] Type `Unknown | None` does not match asserted type `None`
- src/trio/_tests/type_tests/path.py:110:5: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ src/trio/_tests/type_tests/path.py:110:5: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- src/trio/_tests/type_tests/path.py:111:5: error[type-assertion-failure] Type `int` does not match asserted type `Unknown | int`
+ src/trio/_tests/type_tests/path.py:111:5: error[type-assertion-failure] Type `Unknown | int` does not match asserted type `int`
- src/trio/_tests/type_tests/path.py:119:5: error[type-assertion-failure] Type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
- src/trio/_tests/type_tests/path.py:120:5: error[type-assertion-failure] Type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
- src/trio/_tests/type_tests/path.py:121:5: error[type-assertion-failure] Type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
- src/trio/_tests/type_tests/path.py:122:5: error[type-assertion-failure] Type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:119:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]`
+ src/trio/_tests/type_tests/path.py:120:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]`
+ src/trio/_tests/type_tests/path.py:121:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]`
+ src/trio/_tests/type_tests/path.py:122:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]`
- src/trio/_tests/type_tests/path.py:123:5: error[type-assertion-failure] Type `AsyncIOWrapper[FileIO]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:123:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[FileIO]`
- src/trio/_tests/type_tests/path.py:124:5: error[type-assertion-failure] Type `AsyncIOWrapper[BufferedRandom]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:124:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[BufferedRandom]`
- src/trio/_tests/type_tests/path.py:125:5: error[type-assertion-failure] Type `AsyncIOWrapper[BufferedWriter]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:125:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[BufferedWriter]`
- src/trio/_tests/type_tests/path.py:126:5: error[type-assertion-failure] Type `AsyncIOWrapper[BufferedReader[_BufferedReaderStream]]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:126:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[BufferedReader[_BufferedReaderStream]]`
- src/trio/_tests/type_tests/path.py:127:5: error[type-assertion-failure] Type `AsyncIOWrapper[BinaryIO]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:127:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[BinaryIO]`
- src/trio/_tests/type_tests/path.py:128:5: error[type-assertion-failure] Type `AsyncIOWrapper[IO[Any]]` does not match asserted type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]`
+ src/trio/_tests/type_tests/path.py:128:5: error[type-assertion-failure] Type `CoroutineType[Any, Any, AsyncIOWrapper[TextIOWrapper[_WrappedBuffer]]] | CoroutineType[Any, Any, AsyncIOWrapper[BinaryIO]] | CoroutineType[Any, Any, AsyncIOWrapper[IO[Any]]]` does not match asserted type `AsyncIOWrapper[IO[Any]]`
- src/trio/_tests/type_tests/path.py:132:5: error[type-assertion-failure] Type `bytes` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:132:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `bytes`
- src/trio/_tests/type_tests/path.py:133:5: error[type-assertion-failure] Type `int` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:133:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `int`
- src/trio/_tests/type_tests/path.py:134:5: error[type-assertion-failure] Type `int` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:134:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `int`
- src/trio/_tests/type_tests/path.py:137:5: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:137:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `str`
- src/trio/_tests/type_tests/path.py:138:5: error[type-assertion-failure] Type `int` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:138:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `int`
- src/trio/_tests/type_tests/path.py:140:5: error[type-assertion-failure] Type `list[str]` does not match asserted type `Unknown`
+ src/trio/_tests/type_tests/path.py:140:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `list[str]`

pyodide (https://github.com/pyodide/pyodide)
- src/tests/test_static_typing.py:31:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown`
+ src/tests/test_static_typing.py:31:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `int`
- src/tests/test_static_typing.py:44:13: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ src/tests/test_static_typing.py:44:13: error[type-assertion-failure] Type `Unknown` does not match asserted type `str`
- src/tests/test_static_typing.py:58:9: error[type-assertion-failure] Type `int` does not match asserted type `Unknown`
+ src/tests/test_static_typing.py:58:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `int`
- src/tests/test_static_typing.py:59:9: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ src/tests/test_static_typing.py:59:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `str`
- src/tests/test_static_typing.py:74:9: error[type-assertion-failure] Type `list[tuple[int, str]]` does not match asserted type `Unknown`
+ src/tests/test_static_typing.py:74:9: error[type-assertion-failure] Type `Unknown` does not match asserted type `list[tuple[int, str]]`

openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/catalog/utils/__init__.py:132:17: error[unresolved-attribute] Attribute `search` is not defined on `str` in union `str | Unknown`
+ openlibrary/catalog/utils/__init__.py:132:17: error[unresolved-attribute] Attribute `search` is not defined on `str` in union `Unknown | str`

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- scripts/freshvenvs.py:343:69: error[invalid-argument-type] Argument to function `_versions_fully_cover_bounds` is incorrect: Expected `list[str]`, found `list[Version | Unknown] & ~AlwaysFalsy`
+ scripts/freshvenvs.py:343:69: error[invalid-argument-type] Argument to function `_versions_fully_cover_bounds` is incorrect: Expected `list[str]`, found `list[Unknown | Version] & ~AlwaysFalsy`

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- tests/annotations/declarations.py:929:5: error[type-assertion-failure] Type `StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `StdBuilds[Unknown]`
+ tests/annotations/declarations.py:929:5: error[type-assertion-failure] Type `StdBuilds[Unknown]` does not match asserted type `StdBuilds[int | None | float | ... omitted 20 union elements]`
- tests/annotations/declarations.py:934:5: error[type-assertion-failure] Type `StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `StdBuilds[Unknown]`
+ tests/annotations/declarations.py:934:5: error[type-assertion-failure] Type `StdBuilds[Unknown]` does not match asserted type `StdBuilds[int | None | float | ... omitted 20 union elements]`
- tests/annotations/declarations.py:940:5: error[type-assertion-failure] Type `PBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `PBuilds[Unknown]`
+ tests/annotations/declarations.py:940:5: error[type-assertion-failure] Type `PBuilds[Unknown]` does not match asserted type `PBuilds[int | None | float | ... omitted 20 union elements]`
- tests/annotations/declarations.py:944:5: error[type-assertion-failure] Type `PBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `PBuilds[Unknown]`
+ tests/annotations/declarations.py:944:5: error[type-assertion-failure] Type `PBuilds[Unknown]` does not match asserted type `PBuilds[int | None | float | ... omitted 20 union elements]`
- tests/annotations/declarations.py:945:5: error[type-assertion-failure] Type `PBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `Unknown`
+ tests/annotations/declarations.py:945:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `PBuilds[int | None | float | ... omitted 20 union elements]`
- tests/annotations/declarations.py:951:5: error[type-assertion-failure] Type `FullBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `FullBuilds[Unknown] | StdBuilds[Unknown]`
- tests/annotations/declarations.py:956:5: error[type-assertion-failure] Type `PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `PBuilds[Unknown] | StdBuilds[Unknown]`
- tests/annotations/declarations.py:961:5: error[type-assertion-failure] Type `PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `PBuilds[Unknown] | StdBuilds[Unknown]`
- tests/annotations/declarations.py:969:5: error[type-assertion-failure] Type `FullBuilds[int | None | float | ... omitted 20 union elements] | PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown]`
- tests/annotations/declarations.py:980:5: error[type-assertion-failure] Type `FullBuilds[int | None | float | ... omitted 20 union elements] | PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]` does not match asserted type `FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown]`
+ tests/annotations/declarations.py:951:5: error[type-assertion-failure] Type `FullBuilds[Unknown] | StdBuilds[Unknown]` does not match asserted type `FullBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]`
+ tests/annotations/declarations.py:956:5: error[type-assertion-failure] Type `PBuilds[Unknown] | StdBuilds[Unknown]` does not match asserted type `PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]`
+ tests/annotations/declarations.py:961:5: error[type-assertion-failure] Type `PBuilds[Unknown] | StdBuilds[Unknown]` does not match asserted type `PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]`
+ tests/annotations/declarations.py:969:5: error[type-assertion-failure] Type `FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown]` does not match asserted type `FullBuilds[int | None | float | ... omitted 20 union elements] | PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]`
+ tests/annotations/declarations.py:980:5: error[type-assertion-failure] Type `FullBuilds[Unknown] | PBuilds[Unknown] | StdBuilds[Unknown]` does not match asserted type `FullBuilds[int | None | float | ... omitted 20 union elements] | PBuilds[int | None | float | ... omitted 20 union elements] | StdBuilds[int | None | float | ... omitted 20 union elements]`
- tests/annotations/declarations.py:1402:5: error[type-assertion-failure] Type `PBuilds[int]` does not match asserted type `PBuilds[Unknown]`
+ tests/annotations/declarations.py:1402:5: error[type-assertion-failure] Type `PBuilds[Unknown]` does not match asserted type `PBuilds[int]`
- tests/annotations/declarations.py:1409:5: error[type-assertion-failure] Type `FullBuilds[int]` does not match asserted type `FullBuilds[Unknown]`
+ tests/annotations/declarations.py:1409:5: error[type-assertion-failure] Type `FullBuilds[Unknown]` does not match asserted type `FullBuilds[int]`
- tests/annotations/mypy_checks.py:18:5: error[type-assertion-failure] Type `A` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:18:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `A`
- tests/annotations/mypy_checks.py:19:5: error[type-assertion-failure] Type `A` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:19:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `A`
- tests/annotations/mypy_checks.py:20:5: error[type-assertion-failure] Type `A` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:20:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `A`
- tests/annotations/mypy_checks.py:22:5: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:22:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `str`
- tests/annotations/mypy_checks.py:23:5: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:23:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `str`
- tests/annotations/mypy_checks.py:24:5: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:24:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `str`
- tests/annotations/mypy_checks.py:42:5: error[type-assertion-failure] Type `A` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:42:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `A`
- tests/annotations/mypy_checks.py:43:5: error[type-assertion-failure] Type `A` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:43:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `A`
- tests/annotations/mypy_checks.py:44:5: error[type-assertion-failure] Type `A` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:44:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `A`
- tests/annotations/mypy_checks.py:46:5: error[type-assertion-failure] Type `str` does not match asserted type `Unknown`
+ tests/annotations/mypy_checks.py:46:5: error[type-assertion-failure] Type `Unknown` does not match asserted type `str

... (truncated 11056 lines) ...

@AlexWaygood AlexWaygood added the diagnostics Related to reporting of diagnostics. label Feb 16, 2026
@AlexWaygood AlexWaygood merged commit 0679f12 into main Feb 16, 2026
51 checks passed
@AlexWaygood AlexWaygood deleted the david/fix-assert-type-messages branch February 16, 2026 15:27
carljm added a commit that referenced this pull request Feb 16, 2026
* main: (43 commits)
  [`ruff`] Suppress diagnostic for strings with backslashes in interpolations before Python 3.12 (`RUF027`) (#21069)
  [flake8-bugbear] Fix B023 false positive for immediately-invoked lambdas (#23294)
  [ty] Add `Final` mdtests for loops and redeclaration (#23331)
  [`flake8-pyi`] Also check string annotations (`PYI041`) (#19023)
  Remove AlexWaygood as a flake8-pyi codeowner (#23347)
  [ty] Add comments to clarify the purpose of `NominalInstanceType::class_name` and `NominalInstanceType::class_module_name` (#23339)
  Add attestations for release artifacts and Docker images (#23111)
  [ty] Fix `assert_type` diagnostic messages (#23342)
  [ty] Force-update all insta snapshots (#23343)
  Add Q004 to the list of conflicting rules (#23340)
  [ty] Fix `invalid-match-pattern` false positives (#23338)
  [ty] new diagnostic called-match-pattern-must-be-a-type (#22939)
  [ty] Update flaky projects  (#23337)
  [ty] Increase timeout for ecosystem report to 40 min (#23336)
  Bump ecosystem-analyzer pin  (#23335)
  [ty] Replace `strsim` with CPython-based Levenshtein implementation (#23291)
  [ty] Add mdtest for staticmethod assigned in class body (#23330)
  [ty] fix inferring type variable from string literal argument (#23326)
  [ty] bytes literal is a sequence of integers (#23329)
  Update rand and getrandom (#23333)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diagnostics Related to reporting of diagnostics. ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants