EdwardBlair
EdwardBlair
How is that different behaviour from your description in the issue?
I have yet to work out how to inject a callable dependency ```python class MyDep: def __call__(self, request: Request) -> str: return "Hello" @app.get() @inject def my_route(dep_val: str = Depends(Provide[container.my_dep])):...
https://mypy.readthedocs.io/en/stable/extending_mypy.html Seems rather non-trivial... Pydantic's implementation https://pydantic-docs.helpmanual.io/mypy_plugin/ https://github.com/samuelcolvin/pydantic/blob/5ccbdcb5904f35834300b01432a665c75dc02296/pydantic/mypy.py Other examples: https://github.com/python/mypy/tree/master/mypy/plugins
@StefH I have lost all context over this after 6 years. Is a documentation update sufficient?
This is especially annoying if you want to have a local environment called "local" and don't want those checking out your code have a complicated startup preflight. It seems odd...