Skip to content

Commit 54a60a4

Browse files
committed
Fix tests after rebase
1 parent dd0ae60 commit 54a60a4

File tree

1 file changed

+31
-18
lines changed

1 file changed

+31
-18
lines changed

test-data/unit/stubgen-based.test

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,24 +1386,6 @@ class F:
13861386
@t.coroutine
13871387
def g() -> Untyped: ...
13881388

1389-
[case testCoroutineSpecialCase_import]
1390-
import asyncio
1391-
1392-
__all__ = ['C']
1393-
1394-
@asyncio.coroutine
1395-
def f():
1396-
pass
1397-
1398-
class C:
1399-
def f(self):
1400-
pass
1401-
[out]
1402-
import asyncio
1403-
1404-
class C:
1405-
def f(self): ...
1406-
14071389
-- Tests for stub generation from semantically analyzed trees.
14081390
-- These tests are much slower, so use the `_semanal` suffix only when needed.
14091391

@@ -2668,3 +2650,34 @@ def f():
26682650
from basedtyping import Untyped
26692651

26702652
def f() -> Untyped: ...
2653+
2654+
2655+
[case testKnownMagicMethodsReturnTypes]
2656+
class Some:
2657+
def __len__(self): ...
2658+
def __length_hint__(self): ...
2659+
def __init__(self): ...
2660+
def __del__(self): ...
2661+
def __bool__(self): ...
2662+
def __bytes__(self): ...
2663+
def __format__(self, spec): ...
2664+
def __contains__(self, obj): ...
2665+
def __complex__(self): ...
2666+
def __int__(self): ...
2667+
def __float__(self): ...
2668+
def __index__(self): ...
2669+
[out]
2670+
class Some:
2671+
def __len__(self) -> int: ...
2672+
def __length_hint__(self) -> int: ...
2673+
def __init__(self): ...
2674+
def __del__(self): ...
2675+
def __bool__(self) -> bool: ...
2676+
def __bytes__(self) -> bytes: ...
2677+
def __format__(self, spec) -> str: ...
2678+
def __contains__(self, obj) -> bool: ...
2679+
def __complex__(self) -> complex: ...
2680+
def __int__(self) -> int: ...
2681+
def __float__(self) -> float: ...
2682+
def __index__(self) -> int: ...
2683+

0 commit comments

Comments
 (0)