MK
Size: a a a
MK
MK
Б
MK
E
E
Union[tuple_of_types]
MK
Union[tuple_of_types]
E
Б
E
E
DB
E
def build_model() -> Type[не_знаю_что_писать]:
...
class Model(BaseModel):
...
return Model
MK
Type[BaseModel]
прокатит?MK
E
E
from typing import List, get_origin, get_args
type_hint = List[str]
args = get_args(type_hint)
origin = get_origin(type_hint)
origin[args]
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-36-1a6059c5cf58> in <module>
----> 1 origin[args]
TypeError: 'type' object is not subscriptable
origin
Out[37]: list
Б
Type[BaseModel]
прокатит?DS
PUT https://host/content/id/like
вар_2: PUT https://host/set-like (подробности в body запроса)
вар_3: PUT https://content/:id/like
:
в url
? ))ED
PUT https://host/content/id/like
вар_2: PUT https://host/set-like (подробности в body запроса)
вар_3: PUT https://content/:id/like
:
в url
? ))POST /likes