Skip to content

Commit 1d1653b

Browse files
Merge pull request #711 from matelakat/fix-documentation
Fix typo
2 parents 1b519e2 + ca8c97c commit 1d1653b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/datastructures.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Datastructures
55
Creating objects
66
----------------
77

8-
Most of the times you need to pass nested data to the soap client. These
9-
Complex types can be retrieve using the :meth:`client.get_type` method.
8+
Most of the times you need to pass nested data to the soap client. These
9+
Complex types can be retrieved using the :meth:`client.get_type` method.
1010

1111
.. code-block:: python
1212
@@ -20,7 +20,7 @@ Complex types can be retrieve using the :meth:`client.get_type` method.
2020
2121
However instead of creating an object from a type defined in the XSD you can
2222
also pass in a dictionary. Zeep will automatically convert this dict to the
23-
required object (and nested child objects) during the call.
23+
required object (and nested child objects) during the call.
2424

2525

2626
.. code-block:: python
@@ -37,7 +37,7 @@ required object (and nested child objects) during the call.
3737
Using factories
3838
---------------
3939

40-
When you need to create multiple types the :meth:`Client.get_type()` calls to
40+
When you need to create multiple types the :meth:`Client.get_type()` calls to
4141
retrieve the type class and then instantiating them can be a bit verbose. To
4242
simplify this you can use a factory object.
4343

@@ -61,10 +61,10 @@ xsd:choice
6161
Mapping the semantics of xsd:choice elements to code is unfortunately pretty
6262
difficult. Zeep tries to solve this using two methods:
6363

64-
1. Accepting the elements in the xsd:choice element as kwargs. This only
64+
1. Accepting the elements in the xsd:choice element as kwargs. This only
6565
works for simple xsd:choice definitions.
6666
2. Using the special kwarg ``_value_N`` where the N is the number of the
67-
choice in the parent type. This method allows you to pass a list of
67+
choice in the parent type. This method allows you to pass a list of
6868
dicts (when maxOccurs != 1) or a dict directly.
6969

7070

@@ -149,11 +149,11 @@ Nested list using _value_1
149149
Any objects
150150
-----------
151151

152-
Zeep offers full support for xsd:any elements. xsd:any elements are used as
153-
a kind of wildcard and basically allows any element to be used. Zeep needs to
152+
Zeep offers full support for xsd:any elements. xsd:any elements are used as a
153+
kind of wildcard and basically allows any element to be used. Zeep needs to
154154
know the element name you want to serialize, so the value needs to be wrapped
155-
in a special object. This is the :class:`~zeep.xsd.AnyObject`. It takes two parameters, the
156-
xsd Element first and the value as the second arg.
155+
in a special object. This is the :class:`~zeep.xsd.AnyObject`. It takes two
156+
parameters, the xsd Element first and the value as the second arg.
157157

158158
.. code-block:: python
159159
@@ -188,9 +188,10 @@ to the AnyObject an xsd type is passed.
188188
SkipValue
189189
---------
190190

191-
Zeep will automatically validate that all the required values are set when
191+
Zeep will automatically validate that all the required values are set when
192192
calling an operation. If you want to force a value to be ignored and left out
193-
of the generated XML then you can assign the :const:`zeep.xsd.SkipValue` constant.
193+
of the generated XML then you can assign the :const:`zeep.xsd.SkipValue`
194+
constant.
194195

195196

196197
.. code-block:: python

0 commit comments

Comments
 (0)