ruff/crates/ty_python_semantic/resources/mdtest
Alex Waygood 89424cce5f
Some checks are pending
CI / python package (push) Waiting to run
CI / benchmarks (push) Blocked by required conditions
CI / cargo clippy (push) Blocked by required conditions
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
[ty] Do not emit errors if enums or NamedTuples constructed using functional syntax are used in type expressions (#17873)
## Summary

This fixes some false positives that showed up in the primer diff for
https://github.com/astral-sh/ruff/pull/17832

## Test Plan

new mdtests added that fail with false-positive diagnostics on `main`
2025-05-06 00:37:24 +01:00
..
annotations [ty] Do not emit errors if enums or NamedTuples constructed using functional syntax are used in type expressions (#17873) 2025-05-06 00:37:24 +01:00
assignment
binary
boolean
boundness_declaredness
call
class
comparison
comprehensions
conditional
declaration
diagnostics
directives
doc
exception
expression
function [ty] Fix false-positive [invalid-return-type] diagnostics on generator functions (#17871) 2025-05-05 21:44:59 +00:00
generics [ty] Don't require default typevars when specializing (#17872) 2025-05-05 18:29:30 -04:00
import
literal
loops
narrow [red-knot] fix narrowing in nested scopes (#17630) 2025-05-05 16:28:42 -07:00
regression
scopes
shadowing
snapshots [ty] Fix false-positive [invalid-return-type] diagnostics on generator functions (#17871) 2025-05-05 21:44:59 +00:00
stubs
subscript
suppressions
type_of
type_properties
type_qualifiers
unary
with
.mdformat.toml
attributes.md
cycle.md [ty] add cycle handling for FunctionType::signature query (#17833) 2025-05-05 12:12:38 -07:00
dataclass_transform.md
dataclasses.md
decorators.md [ty] Specialize bound methods and nominal instances (#17865) 2025-05-05 17:17:36 -04:00
descriptor_protocol.md
final.md
intersection_types.md
invalid_syntax.md
known_constants.md
mdtest_config.md
mdtest_custom_typeshed.md
metaclass.md
mro.md
named_tuple.md
overloads.md
pep695_type_aliases.md
properties.md
protocols.md
slots.md
statically_known_branches.md
sys_platform.md
sys_version_info.md
terminal_statements.md
type_api.md
typed_dict.md
union_types.md
unpacking.md
unreachable.md