ruff/crates/red_knot_python_semantic/resources/mdtest
Andrew Gallant 3ea32e2cdd red_knot_python_semantic: improve diagnostic message for "invalid argument type"
This uses the refactoring and support for secondary diagnostic messages
to improve the diagnostic for "invalid argument type." The main
improvement here is that we show where the function being called is
defined, and annotate the span corresponding to the invalid parameter.
2025-02-19 08:24:19 -05:00
..
annotations [red-knot] add special case for float/complex (#16166) 2025-02-14 12:24:10 -08:00
assignment Refactor CallOutcome to Result (#16161) 2025-02-18 13:34:39 +01:00
binary [red-knot] update TODO comment in mdtest (#16242) 2025-02-18 20:52:17 +00:00
boolean [red-knot] Statically known branches (#15019) 2024-12-21 11:33:10 +01:00
boundness_declaredness [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
call Refactor CallOutcome to Result (#16161) 2025-02-18 13:34:39 +01:00
comparison Refactor CallOutcome to Result (#16161) 2025-02-18 13:34:39 +01:00
comprehensions [red-knot] Use Unknown | T_inferred for undeclared public symbols (#15674) 2025-01-24 12:47:48 +01:00
conditional [red-knot] fix control flow for assignment expressions in elif tests (#15274) 2025-01-05 18:35:29 +00:00
declaration [red-knot] Avoid undeclared path when raising conflicting declarations (#14958) 2024-12-17 09:49:39 +05:30
diagnostics red_knot_python_semantic: improve diagnostic message for "invalid argument type" 2025-02-19 08:24:19 -05:00
directives [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
doc [red-knot] Document 'public type of undeclared symbols' behavior (#16096) 2025-02-12 08:52:11 +01:00
exception [red-knot] add special case for float/complex (#16166) 2025-02-14 12:24:10 -08:00
expression [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
function [red-knot] function parameter types (#14802) 2024-12-06 12:55:56 -08:00
import [red-knot] Support re-export conventions for stub files (#16073) 2025-02-14 15:17:51 +05:30
literal [red-knot] Migrate bool/str/repr unit tests to Markdown tests (#15534) 2025-01-16 11:21:56 -08:00
loops Refactor CallOutcome to Result (#16161) 2025-02-18 13:34:39 +01:00
narrow [red-knot] Recognize ... as a singleton (#16184) 2025-02-16 22:01:02 +00:00
regression [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
scopes [red-knot] Merge Markdown code blocks inside a single section (#15950) 2025-02-05 22:26:15 +01:00
shadowing [red-knot] Merge Markdown code blocks inside a single section (#15950) 2025-02-05 22:26:15 +01:00
snapshots red_knot_python_semantic: improve diagnostic message for "invalid argument type" 2025-02-19 08:24:19 -05:00
stubs [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
subscript [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
suppressions [red-knot] Merge Markdown code blocks inside a single section (#15950) 2025-02-05 22:26:15 +01:00
type_of [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
type_properties [red-knot] Recognize ... as a singleton (#16184) 2025-02-16 22:01:02 +00:00
type_qualifiers [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
unary [red-knot] Fix Stack overflow in Type::bool (#15843) 2025-02-04 12:40:07 -08:00
with Refactor CallOutcome to Result (#16161) 2025-02-18 13:34:39 +01:00
.mdformat.toml [red-knot] have mdformat wrap mdtest files to 100 columns (#14020) 2024-10-31 21:00:51 +00:00
attributes.md [red-knot] Update tests for attributes inferred from parameters (#16208) 2025-02-18 22:43:11 +01:00
descriptor_protocol.md [red-knot] Initial set of descriptor protocol tests (#15972) 2025-02-05 19:47:43 +01:00
final.md [red-knot] Add support for @final classes (#15070) 2024-12-19 21:02:14 +00:00
generics.md [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
intersection_types.md [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
invalid_syntax.md [red-knot] Separate invalid syntax code snippets (#14803) 2024-12-06 02:41:33 +00:00
known_constants.md [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
mdtest_config.md [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00
mdtest_custom_typeshed.md [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
metaclass.md [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
mro.md [red-knot] Enforce specifying paths for mdtest code blocks in a separate preceding line (#15890) 2025-02-04 08:27:17 +01:00
pep695_type_aliases.md [red-knot] Move type_alias_types test to Markdown (#15607) 2025-01-20 09:55:54 +01:00
slots.md [red-knot] Use Unknown | T_inferred for undeclared public symbols (#15674) 2025-01-24 12:47:48 +01:00
statically_known_branches.md [red-knot] Litate tests: minor follow-up (#15987) 2025-02-06 07:15:26 +00:00
sys_platform.md [red-knot] Typeshed sync and sys.platform fixes (#15492) 2025-01-15 11:21:01 +01:00
sys_version_info.md [red-knot] Merge Markdown code blocks inside a single section (#15950) 2025-02-05 22:26:15 +01:00
terminal_statements.md [red-knot] Combine terminal statement support with statically known branches (#15817) 2025-02-05 17:47:49 -05:00
type_api.md [red-knot] Merge Markdown code blocks inside a single section (#15950) 2025-02-05 22:26:15 +01:00
union_types.md [red-knot] add special case for float/complex (#16166) 2025-02-14 12:24:10 -08:00
unpacking.md [red-knot] Add missing imports in mdtests (#15869) 2025-02-03 09:27:29 +00:00