We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e4916 commit a144f98Copy full SHA for a144f98
newsfragments/3121.misc.rst
@@ -0,0 +1 @@
1
+Improve type annotations in several places by removing `Any` usage.
src/trio/_core/_concat_tb.py
@@ -103,9 +103,8 @@ def controller( # type: ignore[no-any-unimported]
103
and operation.args[0] == "tb_next"
104
) or TYPE_CHECKING: # pragma: no cover
105
return tb_next
106
- if TYPE_CHECKING:
107
- raise RuntimeError("Should not be possible")
108
- return operation.delegate() # Delegate is reverting to original behaviour
+ # Delegate is reverting to original behaviour
+ return operation.delegate() # type: ignore[no-any-return]
109
110
return cast(
111
TracebackType,
0 commit comments