2020-11-01 03:23:24 -06:00
|
|
|
from inspect import Parameter, Signature
|
2020-09-21 07:47:58 -05:00
|
|
|
from typing import List, Union
|
2020-11-01 03:23:24 -06:00
|
|
|
|
|
|
|
|
2020-05-06 05:41:30 -05:00
|
|
|
class Foo:
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Bar:
|
|
|
|
def __init__(self, x, y):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class Baz:
|
|
|
|
def __new__(cls, x, y):
|
|
|
|
pass
|
2020-11-01 03:23:24 -06:00
|
|
|
|
|
|
|
|
|
|
|
class Qux:
|
|
|
|
__signature__ = Signature(parameters=[Parameter('foo', Parameter.POSITIONAL_OR_KEYWORD),
|
|
|
|
Parameter('bar', Parameter.POSITIONAL_OR_KEYWORD)])
|
|
|
|
|
|
|
|
def __init__(self, x, y):
|
|
|
|
pass
|
2020-09-21 07:47:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
class Quux(List[Union[int, float]]):
|
|
|
|
"""A subclass of List[Union[int, float]]"""
|
|
|
|
pass
|
2020-12-26 03:59:33 -06:00
|
|
|
|
|
|
|
|
|
|
|
Alias = Foo
|