Use Generator instead of Iterator for 3rd-party context managers (#12481)

This commit is contained in:
Max Muoto authored and GitHub committed 2024-08-12 14:26:18 +02:00
1 parent 0b6f15c2ff
commit 37807d753a
14 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ class RefResolver:
@property
def base_uri(self): ...
@contextmanager
def in_scope(self, scope) -> Generator[None, None, None]: ...
def in_scope(self, scope) -> Generator[None]: ...
@contextmanager
def resolving(self, ref) -> Generator[Incomplete, None, None]: ...
def resolve(self, ref): ...