Skip to content

Commit 4f61368

Browse files
committed
fixing doc errors
1 parent f6f1117 commit 4f61368

13 files changed

Lines changed: 30 additions & 238 deletions

File tree

deepdiff/diff.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,11 @@ def custom_report_result(self, report_type, level, extra_info=None):
430430
Add a detected change to the reference-style result dictionary.
431431
report_type will be added to level.
432432
(We'll create the text-style report from there later.)
433+
433434
:param report_type: A well defined string key describing the type of change.
434-
Examples: "set_item_added", "values_changed"
435+
Examples: "set_item_added", "values_changed"
435436
:param parent: A DiffLevel object describing the objects in question in their
436-
before-change and after-change object structure.
437+
before-change and after-change object structure.
437438
:param extra_info: A dict that describe this result
438439
:rtype: None
439440
"""

docs/_templates/basic/layout.html

Lines changed: 0 additions & 220 deletions
This file was deleted.

docs/authors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Authors in order of the timeline of their contributions:
9292
- `dtorres-sf <https://github.com/dtorres-sf>`__ for fixing iterable
9393
moved items when iterable_compare_func is used.
9494
- `Florian Finkernagel <https://github.com/TyberiusPrime>`__ for pandas
95-
and polars support.
95+
and polars support.
9696
- Mathis Chenuet `artemisart <https://github.com/artemisart>`__ for
9797
fixing slots classes comparison and PR review.
9898
- Sherjeel Shabih `sherjeelshabih <https://github.com/sherjeelshabih>`__

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ DeepDiff Changelog
6969
- New summarization algorithm that produces valid json
7070
- Better type hint support
7171
- Breaking change in DeepHash where we raise Exception instead of logging if we can't hash a value.
72-
- Added the log_stacktrace parameter to DeepDiff. When True, it will log the stacktrace along with the error.
72+
- Added the log_stacktrace parameter to DeepDiff. When True, it will log the stacktrace along with the error.
7373

7474
- v8-3-0
7575
- Fixed some static typing issues

docs/commandline.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ what if we assume last names are unique and group by last_name?
110110
The path is perhaps more readable now: `root['Molotov']['zip']`. It is more clear that the zip code of Molotov has changed.
111111
112112
.. Note::
113-
The parameters in the deep diff commandline are a subset of those in :ref:`deepdiff_module_label` 's Python API.
113+
The parameters in the deep diff commandline are a subset of those in :ref:`deepdiff_label` 's Python API.
114114
115115
To output in a specific format, for example the colored compact view (see :doc:`colored_view` for output details):
116116
@@ -210,7 +210,7 @@ Run
210210
211211
to get the options:
212212
213-
.. code-block:: bash
213+
.. code-block:: text
214214
215215
$ deep patch --help
216216
Usage: deep patch [OPTIONS] PATH DELTA_PATH

docs/deephash_doc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
**DeepHash**
24

35
DeepHash calculates the hash of objects based on their contents in a deterministic way.

docs/delta.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ force : Boolean, default=False
6868
always_include_values : Boolean, default=False
6969
:ref:`always_include_values_label` is used to make sure the delta objects includes the values that were changed. Sometime Delta tries to be efficient not include the values when it can get away with it. By setting this parameter to True, you ensure that the Delta object will include the values.
7070

71+
.. _delta_fill:
72+
7173
fill : Any, default=No Fill
72-
:ref:`delta_fill` This is only relevant if `force` is set. This parameter only applies when force is set and trying to fill an existing array. If the index of the array being applied is larger than the length of the array this value will be used to fill empty spaces of the array to extend it in order to add the new value. If this parameter is not set, the items will get dropped and the array not extended. If this parameter is set with a callable function, it will get called each time a fill item is needed. It will be provided with three arguments: first argument is the array being filled, second argument is the value that is being added to the array, the third argument is the path that is being added.
74+
This is only relevant if `force` is set. This parameter only applies when force is set and trying to fill an existing array. If the index of the array being applied is larger than the length of the array this value will be used to fill empty spaces of the array to extend it in order to add the new value. If this parameter is not set, the items will get dropped and the array not extended. If this parameter is set with a callable function, it will get called each time a fill item is needed. It will be provided with three arguments: first argument is the array being filled, second argument is the value that is being added to the array, the third argument is the path that is being added.
7375
Example function: `def fill(obj, value, path): return "Camry" if "car" in path else None`
7476

7577

@@ -190,7 +192,7 @@ You can create a delta object from the list of flat dictionaries that are produc
190192
Flat Rows List
191193
--------------
192194

193-
You can create a delta object from the list of flat dictionaries that are produced via :ref:`to_flat_rows_label`. Read more on :ref:`delta_from_flat_rows_label`.
195+
You can create a delta object from the list of flat dictionaries that are produced via :ref:`delta_to_flat_rows_label`. Read more on :ref:`delta_to_flat_rows_label`.
194196

195197

196198
.. _delta_deserializer_label:

docs/diff_doc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.. _deepdiff_module_label:
1+
:orphan:
22

3-
DeepDiff
4-
========
3+
DeepDiff Module
4+
===============
55

66
**DeepDiff is now part of** `Qluster <https://qluster.ai>`__.
77

docs/index.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ If you want to improve the performance of DeepDiff with certain processes such a
133133
Read about DeepDiff optimizations at :ref:`optimizations_label`
134134

135135
Importing
136-
~~~~~~~~~
136+
---------
137137

138138
.. code:: python
139139
@@ -144,8 +144,10 @@ Importing
144144
>>> from deepdiff import extract # For extracting a path from an object
145145
146146
147-
.. note:: if you want to use DeepDiff via commandline, make sure to run::
148-
pip install "deepdiff[cli]"
147+
.. note::
148+
if you want to use DeepDiff via commandline, make sure to run::
149+
150+
pip install "deepdiff[cli]"
149151

150152
Then you can access the commands via:
151153

@@ -166,6 +168,7 @@ Then you can access the commands via:
166168
.. code:: bash
167169
168170
$ deep grep --help
171+
169172
- extract
170173

171174
.. code:: bash
@@ -174,7 +177,7 @@ Then you can access the commands via:
174177
175178
176179
Supported data types
177-
~~~~~~~~~~~~~~~~~~~~
180+
--------------------
178181

179182
int, string, unicode, dictionary, list, tuple, set, frozenset, OrderedDict, NamedTuple, Numpy, custom objects and more!
180183

docs/numbers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ use_log_scale: Boolean, default=False
172172
.. _log_scale_similarity_threshold_label:
173173

174174
Log Scale Similarity Threshold
175-
------------
175+
------------------------------
176176

177177
log_scale_similarity_threshold: float, default = 0.1
178178
:ref:`use_log_scale_label` along with log_scale_similarity_threshold can be used to ignore small changes in numbers by comparing their differences in logarithmic space. This is different than ignoring the difference based on significant digits. See the example above.

0 commit comments

Comments
 (0)