| 1 |
class Body(model.BaseBody[ |
| 2 |
"Keyword", "For", "While", "Group", "If", "Try", "Var", "Return", "Continue", |
| 3 |
"Break", "model.Message", "Error" |
| 4 |
]): # fmt: skip |
| 5 |
__slots__ = () |
| 6 |
|
| 7 |
|
| 8 |
class Foo(Base[\ |
| 9 |
"A", "B"\ |
| 10 |
]): # fmt: skip |
| 11 |
|
| 12 |
def a(self): ... |
| 13 |
|
| 14 |
|
| 15 |
def make_result( |
| 16 |
first : int, |
| 17 |
second: str, |
| 18 |
): # fmt: skip |
| 19 |
return first, second |
| 20 |
|
| 21 |
|
| 22 |
async def fetch_result( |
| 23 |
client, |
| 24 |
*, |
| 25 |
timeout = 1, |
| 26 |
): # fmt: skip |
| 27 |
return await client.fetch(timeout=timeout) |
| 28 |
|
| 29 |
|
| 30 |
if ( |
| 31 |
has_permission( user ) |
| 32 |
and is_ready( item ) |
| 33 |
): # fmt: skip |
| 34 |
process(item) |
| 35 |
|
| 36 |
match (method, *path.split("/")): |
| 37 |
case ("GET", "parent", _, "resource", resource_id) \ |
| 38 |
| ("GET", "resource", resource_id): # fmt: skip |
| 39 |
pass |
| 40 |
case _: |
| 41 |
pass |
| 42 |
|
| 43 |
match x: |
| 44 |
case a \ |
| 45 |
| b \ |
| 46 |
| c: # fmt: skip |
| 47 |
pass |