Dmitry Plaksunov
Dmitry Plaksunov
multiple response models and codes works ``` py >>> def login(request, payload: int) -> {200: str, 401: int, 402: str}: ... pass ... >>> login.__annotations__ {'payload': , 'return': {200: ,...
I think it seems pretty ```py def some_longlonglonglonglonglonglonglonglonglong_api_method_name( some_param: int, some_more: str, more: int, crazy_long_param_name: str, one_more_big_param_name_like_snake: int, ) -> {200: int, 400: dict}: pass ``` and of course we...
Why i really wants to make it, because i want to defining endpoints and their schemas in many files and register them to API in one other file. In this...
Yeah, mypy not validate this, but flake8 returns no errors
See my review please https://github.com/tiangolo/fastapi/pull/1363#pullrequestreview-421383447
Hello, comrade @tiangolo ! Unfortunately comrade @rezchikov hasn't been online for a month. I hope he’s not in gulag 😢 I want to develop Russian translation, how is it better...