mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 12:05:57 +00:00 
			
		
		
		
	|  dc64c08633 
		
			Some checks failed
		
		
	 CI / cargo fmt (push) Has been cancelled CI / mkdocs (push) Has been cancelled CI / Determine changes (push) Has been cancelled CI / cargo build (release) (push) Has been cancelled CI / python package (push) Has been cancelled CI / pre-commit (push) Has been cancelled [ty Playground] Release / publish (push) Has been cancelled CI / cargo clippy (push) Has been cancelled CI / cargo test (linux) (push) Has been cancelled CI / cargo test (linux, release) (push) Has been cancelled CI / cargo test (windows) (push) Has been cancelled CI / cargo test (wasm) (push) Has been cancelled CI / cargo build (msrv) (push) Has been cancelled CI / cargo fuzz build (push) Has been cancelled CI / fuzz parser (push) Has been cancelled CI / test scripts (push) Has been cancelled CI / ecosystem (push) Has been cancelled CI / Fuzz for new ty panics (push) Has been cancelled CI / cargo shear (push) Has been cancelled CI / ty completion evaluation (push) Has been cancelled CI / formatter instabilities and black similarity (push) Has been cancelled CI / test ruff-lsp (push) Has been cancelled CI / check playground (push) Has been cancelled CI / benchmarks instrumented (ruff) (push) Has been cancelled CI / benchmarks instrumented (ty) (push) Has been cancelled CI / benchmarks walltime (medium|multithreaded) (push) Has been cancelled CI / benchmarks walltime (small|large) (push) Has been cancelled ## Summary
Implements bidirectional type inference using function return type
annotations.
This PR was originally proposed to solve astral-sh/ty#1167, but this
does not fully resolve it on its own.
Additionally, I believe we need to allow dataclasses to generate their
own `__new__` methods, [use constructor return types for
inference]( | ||
|---|---|---|
| .. | ||
| corpus | ||
| mdtest | ||
| primer | ||
| README.md | ||
Markdown files within the mdtest/ subdirectory are tests of type inference and type checking;
executed by the tests/mdtest.rs integration test.
See crates/ty_test/README.md for documentation of this test format.