Skip to content

Commit 3456684

Browse files
authored
stubgen: add test case for handling Incomplete return types (#19253)
Closes #16658
1 parent f1b496c commit 3456684

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test-data/unit/stubgen.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4744,3 +4744,15 @@ class DCMeta(type): ...
47444744

47454745
class DC(metaclass=DCMeta):
47464746
x: str
4747+
4748+
4749+
[case testIncompleteReturn]
4750+
from _typeshed import Incomplete
4751+
4752+
def polar(*args, **kwargs) -> Incomplete:
4753+
...
4754+
4755+
[out]
4756+
from _typeshed import Incomplete
4757+
4758+
def polar(*args, **kwargs) -> Incomplete: ...

0 commit comments

Comments
 (0)