From 7764a5ab35b112c1586d8a79d43736627c3a1cc0 Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Mon, 17 Nov 2025 16:59:13 -0500 Subject: [PATCH] turn off some auto-formatting --- .../resources/mdtest/generics/specialize_constrained.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ty_python_semantic/resources/mdtest/generics/specialize_constrained.md b/crates/ty_python_semantic/resources/mdtest/generics/specialize_constrained.md index 43c2d1a793..defc3ffe86 100644 --- a/crates/ty_python_semantic/resources/mdtest/generics/specialize_constrained.md +++ b/crates/ty_python_semantic/resources/mdtest/generics/specialize_constrained.md @@ -19,6 +19,8 @@ bound of all of the types that satisfy the constraint set. from typing import Never from ty_extensions import ConstraintSet, generic_context +# fmt: off + def unbounded[T](): # revealed: ty_extensions.Specialization[T@unbounded = object] reveal_type(generic_context(unbounded).specialize_constrained(ConstraintSet.always())) @@ -154,6 +156,8 @@ constraint that makes the test succeed. ```py from typing import Any +# fmt: off + def constrained_by_gradual[T: (Base, Any)](): # revealed: ty_extensions.Specialization[T@constrained_by_gradual = object] reveal_type(generic_context(constrained_by_gradual).specialize_constrained(ConstraintSet.always()))