You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Add more x0ret tests
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -47,11 +47,50 @@ def div(a: dict(type=float, help='the dividend'),
|
|||||||
"""Divide a by b"""
|
"""Divide a by b"""
|
||||||
return a / b
|
return a / b
|
||||||
|
|
||||||
# FIXME:
|
class TestSignatureObject1():
|
||||||
# class TestSignatureObject():
|
def test_signature_on_wkwonly(self):
|
||||||
# def test_signature_on_wkwonly(self):
|
def test(*, a:float, b:str, c:str = 'test', **kwargs: int) -> int:
|
||||||
# def test(*, a:float, b:str) -> int:
|
pass
|
||||||
# pass
|
|
||||||
|
class TestSignatureObject2():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(*, c='test', a:float, b:str="S", **kwargs: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject3():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(*, c='test', a:float, kwargs:str="S", **b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject4():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(x=55, *args, c:str='test', a:float, kwargs:str="S", **b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject5():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(x=55, *args: int, c='test', a:float, kwargs:str="S", **b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject5():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(x:int=55, *args: (int, str), c='test', a:float, kwargs:str="S", **b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject7():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(c='test', kwargs:str="S", **b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject8():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(**b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class TestSignatureObject9():
|
||||||
|
def test_signature_on_wkwonly(self):
|
||||||
|
def test(a, **b: int) -> int:
|
||||||
|
pass
|
||||||
|
|
||||||
class SupportsInt():
|
class SupportsInt():
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user