Skip to content

Commit 9937ecd

Browse files
committed
typos on query
1 parent 71da45e commit 9937ecd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

O365/utils/utils.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,22 +1155,21 @@ def iterable(self, iterable_name, *, collection, word, attribute=None, func=None
11551155
emailAddresses/any(a:a/address eq 'george@best.com')
11561156
11571157
:param str iterable_name: the OData name of the iterable
1158-
:param str collection: the collection to apply the any keyword on
1158+
:param str collection: the collection to apply the 'any' keyword on
11591159
:param str word: the word to check
11601160
:param str attribute: the attribute of the collection to check
11611161
:param str func: the logical function to apply to the attribute inside
11621162
the collection
11631163
:param str operation: the logical operation to apply to the attribute
11641164
inside the collection
1165-
:param bool negation: negate the funcion or operation inside the iterable
1165+
:param bool negation: negate the function or operation inside the iterable
11661166
:rtype: Query
11671167
"""
11681168

11691169
if func is None and operation is None:
11701170
raise ValueError('Provide a function or an operation to apply')
11711171
elif func is not None and operation is not None:
1172-
raise ValueError(
1173-
'Provide either a function or an operation but not both')
1172+
raise ValueError('Provide either a function or an operation but not both')
11741173

11751174
current_att = self._attribute
11761175
self._attribute = iterable_name
@@ -1215,14 +1214,14 @@ def any(self, *, collection, word, attribute=None, func=None, operation=None, ne
12151214
12161215
emailAddresses/any(a:a/address eq 'george@best.com')
12171216
1218-
:param str collection: the collection to apply the any keyword on
1217+
:param str collection: the collection to apply the 'any' keyword on
12191218
:param str word: the word to check
12201219
:param str attribute: the attribute of the collection to check
12211220
:param str func: the logical function to apply to the attribute
12221221
inside the collection
12231222
:param str operation: the logical operation to apply to the
12241223
attribute inside the collection
1225-
:param bool negation: negates the funcion or operation inside the iterable
1224+
:param bool negation: negates the function or operation inside the iterable
12261225
:rtype: Query
12271226
"""
12281227

0 commit comments

Comments
 (0)