From 81fc51e197fa15f0a8248cbfc2da0f6187660917 Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Sun, 7 Dec 2025 14:46:52 -0500 Subject: [PATCH] update test TODOs --- crates/ty_python_semantic/resources/mdtest/annotations/self.md | 2 +- crates/ty_python_semantic/resources/mdtest/with/async.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ty_python_semantic/resources/mdtest/annotations/self.md b/crates/ty_python_semantic/resources/mdtest/annotations/self.md index 57690b3dc3..9996a4566d 100644 --- a/crates/ty_python_semantic/resources/mdtest/annotations/self.md +++ b/crates/ty_python_semantic/resources/mdtest/annotations/self.md @@ -189,7 +189,7 @@ reveal_type(B().name_does_not_matter()) # revealed: B reveal_type(B().positional_only(1)) # revealed: B reveal_type(B().keyword_only(x=1)) # revealed: B # TODO: This should deally be `B` -reveal_type(B().decorated_method()) # revealed: Unknown +reveal_type(B().decorated_method()) # revealed: Self@decorated_method | Unknown reveal_type(B().a_property) # revealed: B diff --git a/crates/ty_python_semantic/resources/mdtest/with/async.md b/crates/ty_python_semantic/resources/mdtest/with/async.md index 2a0d7165de..6d556d438b 100644 --- a/crates/ty_python_semantic/resources/mdtest/with/async.md +++ b/crates/ty_python_semantic/resources/mdtest/with/async.md @@ -213,7 +213,7 @@ async def connect() -> AsyncGenerator[Session]: yield Session() # TODO: this should be `() -> _AsyncGeneratorContextManager[Session, None]` -reveal_type(connect) # revealed: () -> _AsyncGeneratorContextManager[Unknown, None] +reveal_type(connect) # revealed: (...) -> _AsyncGeneratorContextManager[Unknown, None] async def main(): async with connect() as session: