mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-18 12:02:23 +03:00
Fix a few typos
This commit is contained in:
parent
fac768496e
commit
084dd23495
|
@ -356,7 +356,7 @@ cdef class Dependency(Provider):
|
||||||
This provider is used for description of dependency interface. That might
|
This provider is used for description of dependency interface. That might
|
||||||
be useful when dependency could be provided in the client's code only,
|
be useful when dependency could be provided in the client's code only,
|
||||||
but it's interface is known. Such situations could happen when required
|
but it's interface is known. Such situations could happen when required
|
||||||
dependency has non-determenistic list of dependencies itself.
|
dependency has non-deterministic list of dependencies itself.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
@ -445,7 +445,7 @@ cdef class ExternalDependency(Dependency):
|
||||||
This provider is used for description of dependency interface. That might
|
This provider is used for description of dependency interface. That might
|
||||||
be useful when dependency could be provided in the client's code only,
|
be useful when dependency could be provided in the client's code only,
|
||||||
but it's interface is known. Such situations could happen when required
|
but it's interface is known. Such situations could happen when required
|
||||||
dependency has non-determenistic list of dependencies itself.
|
dependency has non-deterministic list of dependencies itself.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
@ -607,7 +607,7 @@ cdef class OverridingContext(object):
|
||||||
"""Provider overriding context.
|
"""Provider overriding context.
|
||||||
|
|
||||||
:py:class:`OverridingContext` is used by :py:meth:`Provider.override` for
|
:py:class:`OverridingContext` is used by :py:meth:`Provider.override` for
|
||||||
implemeting ``with`` contexts. When :py:class:`OverridingContext` is
|
implementing ``with`` contexts. When :py:class:`OverridingContext` is
|
||||||
closed, overriding that was created in this context is dropped also.
|
closed, overriding that was created in this context is dropped also.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
@ -739,7 +739,7 @@ cdef class Callable(Provider):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def set_args(self, *args):
|
def set_args(self, *args):
|
||||||
"""Set postional argument injections.
|
"""Set positional argument injections.
|
||||||
|
|
||||||
Existing positional argument injections are dropped.
|
Existing positional argument injections are dropped.
|
||||||
|
|
||||||
|
@ -750,7 +750,7 @@ cdef class Callable(Provider):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def clear_args(self):
|
def clear_args(self):
|
||||||
"""Drop postional argument injections.
|
"""Drop positional argument injections.
|
||||||
|
|
||||||
:return: Reference ``self``
|
:return: Reference ``self``
|
||||||
"""
|
"""
|
||||||
|
@ -1272,7 +1272,7 @@ cdef class Factory(Provider):
|
||||||
return self.__instantiator.args
|
return self.__instantiator.args
|
||||||
|
|
||||||
def add_args(self, *args):
|
def add_args(self, *args):
|
||||||
"""Add __init__ postional argument injections.
|
"""Add __init__ positional argument injections.
|
||||||
|
|
||||||
:return: Reference ``self``
|
:return: Reference ``self``
|
||||||
"""
|
"""
|
||||||
|
@ -1280,7 +1280,7 @@ cdef class Factory(Provider):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def set_args(self, *args):
|
def set_args(self, *args):
|
||||||
"""Set __init__ postional argument injections.
|
"""Set __init__ positional argument injections.
|
||||||
|
|
||||||
Existing __init__ positional argument injections are dropped.
|
Existing __init__ positional argument injections are dropped.
|
||||||
|
|
||||||
|
@ -1290,7 +1290,7 @@ cdef class Factory(Provider):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def clear_args(self):
|
def clear_args(self):
|
||||||
"""Drop __init__ postional argument injections.
|
"""Drop __init__ positional argument injections.
|
||||||
|
|
||||||
:return: Reference ``self``
|
:return: Reference ``self``
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user