Skip to content

Commit 1fecc7a

Browse files
DOC Use dict syntax as the more common use case
1 parent 056b6ee commit 1fecc7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

civis/civis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ def find(object_list, filter_func=None, **kwargs):
3131
list, unless one of the following conditions is met:
3232
- ``key`` is not an attribute of ``object``
3333
- ``value`` is a one-argument function and
34-
``bool(value(object.key))`` is ``False``
34+
``bool(value(object[key]))`` is ``False``
3535
- ``value`` is ``False``
36-
- ``object.key`` is not equal to ``value``
36+
- ``object[key]`` is not equal to ``value``
3737
3838
Returns
3939
-------

0 commit comments

Comments
 (0)