diff --git a/docs/usage/dependency-injection.rst b/docs/usage/dependency-injection.rst index 114bf3fa91..b709ed326b 100644 --- a/docs/usage/dependency-injection.rst +++ b/docs/usage/dependency-injection.rst @@ -53,6 +53,14 @@ the application: The above example illustrates how dependencies are declared on the different layers of the application. +.. note:: + + Litestar needs the injected types at runtime which might clash with linter rules' recommendation to use ``TYPE_CHECKING``. + + .. seealso:: + + :ref:`Signature namespace ` + Dependencies can be either callables - sync or async functions, methods, or class instances that implement the :meth:`object.__call__` method, or classes. These are in turn wrapped inside an instance of the :class:`Provide <.di.Provide>` class.