Skip to content

Commit 4773de4

Browse files
committed
SG-30223 Reformat code examples to prevent text overflow
1 parent 86f64f3 commit 4773de4

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

shotgun_api3/shotgun.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,10 @@ def find_one(self, entity_type, filters, fields=None, order=None, filter_operato
850850
Defaults to ``["id"]``.
851851
:param int order: Optional list of fields to order the results by. List has the format::
852852
853-
[{'field_name':'foo', 'direction':'asc'}, {'field_name':'bar', 'direction':'desc'}]
853+
[
854+
{'field_name':'foo', 'direction':'asc'},
855+
{'field_name':'bar', 'direction':'desc'}
856+
]
854857
855858
Defaults to sorting by ``id`` in ascending order.
856859
:param str filter_operator: Operator to apply to the filters. Supported values are ``"all"``
@@ -865,7 +868,11 @@ def find_one(self, entity_type, filters, fields=None, order=None, filter_operato
865868
:param additional_filter_presets: Optional list of presets to further filter the result
866869
set, list has the form::
867870
868-
[{"preset_name": <preset_name>, <optional_param1>: <optional_value1>, ... }]
871+
[{
872+
"preset_name": <preset_name>,
873+
<optional_param1>: <optional_value1>,
874+
...
875+
}]
869876
870877
Note that these filters are ANDed together and ANDed with the 'filter'
871878
argument.
@@ -947,7 +954,10 @@ def find(self, entity_type, filters, fields=None, order=None, filter_operator=No
947954
query. Each dictionary contains the ``field_name`` to order by and the ``direction``
948955
to sort::
949956
950-
[{'field_name':'foo', 'direction':'asc'}, {'field_name':'bar', 'direction':'desc'}]
957+
[
958+
{'field_name':'foo', 'direction':'asc'},
959+
{'field_name':'bar', 'direction':'desc'}
960+
]
951961
952962
Defaults to sorting by ``id`` in ascending order.
953963
:param str filter_operator: Operator to apply to the filters. Supported values are ``"all"``
@@ -967,7 +977,11 @@ def find(self, entity_type, filters, fields=None, order=None, filter_operator=No
967977
:param additional_filter_presets: Optional list of presets to further filter the result
968978
set, list has the form::
969979
970-
[{"preset_name": <preset_name>, <optional_param1>: <optional_value1>, ... }]
980+
[{
981+
"preset_name": <preset_name>,
982+
<optional_param1>: <optional_value1>,
983+
...
984+
}]
971985
972986
Note that these filters are ANDed together and ANDed with the 'filter'
973987
argument.

0 commit comments

Comments
 (0)