Example #1
0
def invalid_method_three(a: FromJson(Cat), b: FromJson(Dog), c: FromJson(Dog)):
    print(a, b, c)
Example #2
0
def invalid_method_one(a: FromJson(Cat), b: FromJson(Cat)):
    print(a, b)
Example #3
0
def invalid_method_two(a: FromJson(Cat), b: FromJson(Dog)):
    print(a, b)
Example #4
0
def valid_method_four(a: FromJson(Dog)):
    print(a)
Example #5
0
def valid_method_three(b: str, a: FromJson(Cat)):
    print(b, a)
Example #6
0
def valid_method_two(a: FromJson(Cat), b: str):
    print(a, b)
Example #7
0
def valid_method_one(a: FromJson(Cat)):
    print(a)
Example #8
0
 def handler(a: FromQuery(List[str]), b: FromServices(Dog),
             c: FromJson(Cat), d: FromRoute(), e: FromHeader()):
     pass