Aleksandr Antonov

Results 82 comments of Aleksandr Antonov

> Not at all dirty! I like the idea, it is more 'pythonic' and best of all its additional to current practice, so in the future it could be decided...

> Well the test work, if you take into account one edge case: if the endpoint is a `functools.partial` (of which I am of opinion is not really a use...

> Well the test work, if you take into account one edge case: if the endpoint is a `functools.partial` (of which I am of opinion is not really a use...

> > this check make patch much bigger. > > What do you mean by this? Probable need to separate this functionality from `self.add_api_route` For now it's not necessary, but...

At the current moment i have this: ``` if response_model is None: handler: Callable= endpoint while issubclass(type(handler), functools.partial): handler= handler.func response_model = handler.__annotations__.get('return') ```

> I created a PR and wrote some tests, I really like the idea :) Thanks a lot

> > Essential... Well, i mean it's because this functionality expected to be as basic (by any newbie at least). > > FastAPI have Pydantic native intergration, very pythonic style,...

> I think this proposal might also have performance benefits, but it would need to be implemented a bit differently. > > Currently when you specify a response model in...

Is it possible to support Percolate mode for KNN search?

> I think this proposal might also have performance benefits, but it would need to be implemented a bit differently. > > Currently when you specify a response model in...