@@ -200,7 +200,7 @@ You can print a Gitlab Object. For example:
200
200
# Or in a prettier format.
201
201
project.pprint()
202
202
203
- # Or explicitly via `pformat()`. This is equivalent to the above.
203
+ # Or explicitly via `` pformat()` `. This is equivalent to the above.
204
204
print (project.pformat())
205
205
206
206
You can also extend the object if the parameter isn't explicitly listed. For example,
@@ -217,16 +217,16 @@ the value on the object is accepted:
217
217
You can get a dictionary representation copy of the Gitlab Object. Modifications made to
218
218
the dictionary will have no impact on the GitLab Object.
219
219
220
- * `asdict() ` method. Returns a dictionary representation of the Gitlab object.
221
- * `attributes ` property. Returns a dictionary representation of the Gitlab
220
+ * `` asdict() ` ` method. Returns a dictionary representation of the Gitlab object.
221
+ * `` attributes ` ` property. Returns a dictionary representation of the Gitlab
222
222
object. Also returns any relevant parent object attributes.
223
223
224
224
.. note ::
225
225
226
- `attributes ` returns the parent object attributes that are defined in
227
- `object._from_parent_attrs `. What this can mean is that for example a `ProjectIssue `
228
- object will have a `project_id ` key in the dictionary returned from `attributes ` but
229
- `asdict() ` will not.
226
+ `` attributes ` ` returns the parent object attributes that are defined in
227
+ `` object._from_parent_attrs `` . What this can mean is that for example a `` ProjectIssue ` `
228
+ object will have a `` project_id `` key in the dictionary returned from `` attributes ` ` but
229
+ `` asdict() ` ` will not.
230
230
231
231
232
232
.. code-block :: python
@@ -244,7 +244,7 @@ You can get a JSON string represenation of the Gitlab Object. For example:
244
244
245
245
project = gl.projects.get(1 )
246
246
print (project.to_json())
247
- # Use arguments supported by `json.dump()`
247
+ # Use arguments supported by `` json.dump()` `
248
248
print (project.to_json(sort_keys = True , indent = 4 ))
249
249
250
250
Base types
0 commit comments