Skip to content

Commit 910dec3

Browse files
authored
Fix a few typos (#250)
* Fix a few typos * Spell, grammar checkers on docs
1 parent fac7684 commit 910dec3

File tree

9 files changed

+22
-22
lines changed

9 files changed

+22
-22
lines changed

docs/examples/bundles_miniapp.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Bundles mini application example
33

44
.. currentmodule:: dependency_injector.containers
55

6-
"Bundles" is an example mini application that is intented to demonstrate the
6+
"Bundles" is an example mini application that is intended to demonstrate the
77
power of dependency injection for creation of re-usable application components
88
("bundles") with 100% transparency of their dependencies.
99

@@ -33,7 +33,7 @@ IoC containers
3333
Next two listings show :py:class:`DeclarativeContainer`'s for "users" and
3434
"photos" bundles.
3535

36-
Listing of ``bundeles/users/__init__.py``:
36+
Listing of ``bundles/users/__init__.py``:
3737

3838
.. literalinclude:: ../../examples/miniapps/bundles/bundles/users/__init__.py
3939
:language: python
@@ -43,7 +43,7 @@ Listing of ``bundeles/users/__init__.py``:
4343

4444
- ``Users`` container has dependency on database.
4545

46-
Listing of ``bundeles/photos/__init__.py``:
46+
Listing of ``bundles/photos/__init__.py``:
4747

4848
.. literalinclude:: ../../examples/miniapps/bundles/bundles/photos/__init__.py
4949
:language: python

docs/introduction/di_in_python.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ definitely quite lower than in other languages (even with dynamic typing).
7777
supported.
7878

7979
Talking about inversion of control, it is a software design principle that
80-
also works for each programming language, not dependending on its typing type.
80+
also works for each programming language, not depending on its typing type.
8181

8282
Inversion of control is used to increase modularity of the program and make
8383
it extensible.

docs/main/changelog.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ follows `Semantic versioning`_
322322
3.3.7
323323
-----
324324
- Fix minor bug related to patch of ``Configuration`` provider in version
325-
3.3.6 - special attribues were identified by formula ``__{text}`` - now
325+
3.3.6 - special attributes were identified by formula ``__{text}`` - now
326326
they are identified by formula ``__{text}__``, that is more correct
327327
according to Python Data Model.
328328

@@ -453,12 +453,12 @@ follows `Semantic versioning`_
453453

454454
- **Containers**
455455

456-
1. Module ``dependency_injector.containers`` was splitted into submodules
456+
1. Module ``dependency_injector.containers`` was split into submodules
457457
without any functional changes.
458458

459459
- **Utils**
460460

461-
1. Module ``dependency_injector.utils`` is splitted into
461+
1. Module ``dependency_injector.utils`` is split into
462462
``dependency_injector.containers`` and ``dependency_injector.providers``.
463463

464464
- **Miscellaneous**
@@ -805,9 +805,9 @@ to be the first major release.
805805
``Provider._provide()``.
806806
- ``NewInstance`` provider was renamed to ``Factory`` provider.
807807
``NewInstance`` still can be used, but it considered to be deprecated and
808-
will be removed in futher releases.
808+
will be removed in further releases.
809809
- ``@inject`` decorator was refactored to keep all injections in
810-
``_injections`` attribute of decorated callback. It will give a possibilty to
810+
``_injections`` attribute of decorated callback. It will give a possibility to
811811
track all the injections of particular callbacks and gives some performance
812812
boost due minimizing number of calls for doing injections.
813813
- A lot of documentation updates were made.

docs/providers/custom.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Below are some tips and recommendations that have to be met:
99

1010
1. Every custom provider has to extend base provider class -
1111
:py:class:`Provider`.
12-
2. Cusom provider's ``__init__()`` could be overriden, but parent's
12+
2. Custom provider's ``__init__()`` could be overridden, but parent's
1313
initializer (:py:meth:`Provider.__init__`) has to be called.
1414
3. Providing strategy has to be implemented in custom provider's
1515
:py:meth:`Provider.__call__` method.

docs/providers/factory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ aggregates other :py:class:`Factory` providers.
160160

161161
:py:class:`FactoryAggregate` is not overridable. Calling of
162162
:py:meth:`FactoryAggregate.override` will result in raising of an
163-
expection.
163+
exception.
164164

165165
Next prototype might be the best demonstration of
166166
:py:class:`FactoryAggregate` features:

docs/providers/overriding.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This gives opportunity to make system behaviour more flexible at some point.
99
The main feature is that while your code is using providers, it depends on
1010
providers, but not on the objects that providers provide. As a result of this,
1111
you can change providing by provider object to a different one, but still
12-
compatible one, without chaning your previously written code.
12+
compatible one, without changing your previously written code.
1313

1414
Provider overriding functionality has such interface:
1515

docs/providers/singleton.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Singleton providers resetting
2222
Created and memorized by :py:class:`Singleton` instance can be reset. Reset of
2323
:py:class:`Singleton`'s memorized instance is done by clearing reference to
2424
it. Further lifecycle of memorized instance is out of :py:class:`Singleton`
25-
provider's control and dependes on garbage collection strategy.
25+
provider's control and depends on garbage collection strategy.
2626

2727
Example:
2828

29-
.. literalinclude:: ../../examples/providers/singleton_reseting.py
29+
.. literalinclude:: ../../examples/providers/singleton_resetting.py
3030
:language: python
3131
:linenos:
3232

File renamed without changes.

src/dependency_injector/providers.pyx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ cdef class Dependency(Provider):
356356
This provider is used for description of dependency interface. That might
357357
be useful when dependency could be provided in the client's code only,
358358
but it's interface is known. Such situations could happen when required
359-
dependency has non-determenistic list of dependencies itself.
359+
dependency has non-deterministic list of dependencies itself.
360360
361361
.. code-block:: python
362362
@@ -445,7 +445,7 @@ cdef class ExternalDependency(Dependency):
445445
This provider is used for description of dependency interface. That might
446446
be useful when dependency could be provided in the client's code only,
447447
but it's interface is known. Such situations could happen when required
448-
dependency has non-determenistic list of dependencies itself.
448+
dependency has non-deterministic list of dependencies itself.
449449
450450
.. code-block:: python
451451
@@ -607,7 +607,7 @@ cdef class OverridingContext(object):
607607
"""Provider overriding context.
608608
609609
:py:class:`OverridingContext` is used by :py:meth:`Provider.override` for
610-
implemeting ``with`` contexts. When :py:class:`OverridingContext` is
610+
implementing ``with`` contexts. When :py:class:`OverridingContext` is
611611
closed, overriding that was created in this context is dropped also.
612612
613613
.. code-block:: python
@@ -739,7 +739,7 @@ cdef class Callable(Provider):
739739
return self
740740

741741
def set_args(self, *args):
742-
"""Set postional argument injections.
742+
"""Set positional argument injections.
743743
744744
Existing positional argument injections are dropped.
745745
@@ -750,7 +750,7 @@ cdef class Callable(Provider):
750750
return self
751751

752752
def clear_args(self):
753-
"""Drop postional argument injections.
753+
"""Drop positional argument injections.
754754
755755
:return: Reference ``self``
756756
"""
@@ -1272,15 +1272,15 @@ cdef class Factory(Provider):
12721272
return self.__instantiator.args
12731273

12741274
def add_args(self, *args):
1275-
"""Add __init__ postional argument injections.
1275+
"""Add __init__ positional argument injections.
12761276
12771277
:return: Reference ``self``
12781278
"""
12791279
self.__instantiator.add_args(*args)
12801280
return self
12811281

12821282
def set_args(self, *args):
1283-
"""Set __init__ postional argument injections.
1283+
"""Set __init__ positional argument injections.
12841284
12851285
Existing __init__ positional argument injections are dropped.
12861286
@@ -1290,7 +1290,7 @@ cdef class Factory(Provider):
12901290
return self
12911291

12921292
def clear_args(self):
1293-
"""Drop __init__ postional argument injections.
1293+
"""Drop __init__ positional argument injections.
12941294
12951295
:return: Reference ``self``
12961296
"""

0 commit comments

Comments
 (0)