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 43d306b commit ac2b3d2Copy full SHA for ac2b3d2
crates/ty_python_semantic/resources/mdtest/function/return_type.md
@@ -383,6 +383,15 @@ def divergent2(value):
383
384
reveal_type(divergent2((1,))) # revealed: tuple[Divergent] | list[Divergent] | None
385
386
+def list_int(x: int):
387
+ if x > 0:
388
+ return list1(list_int(x - 1))
389
+ else:
390
+ return list1(x)
391
+
392
+# TODO: should be `list[int]`
393
+reveal_type(list_int(1)) # revealed: list[Divergent] | list[int]
394
395
def tuple_obj(cond: bool):
396
if cond:
397
x = object()
0 commit comments