Skip to content

Commit 92f2933

Browse files
committed
improve docstrings
1 parent 9ea8866 commit 92f2933

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

src/datajudge/constraints/uniques.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ class Uniques(Constraint, abc.ABC):
150150
the `NullAbsence` constraint via the `add_null_absence_constraint` helper method for
151151
`WithinRequirement`.
152152
By default, the null filtering does not trigger if multiple columns are fetched at once.
153-
It can be configured in more detail by supplying a custom `filter_func` function.
154-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
155-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
153+
It can be configured in more detail by supplying a custom ``filter_func`` function.
154+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
155+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
156156
For new deployments, using one of the above filters or a custom one is recommended.
157-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
157+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
158158
The deprecated default may change in future versions.
159-
To silence the warning, set `filter_func` explicitly.
159+
To silence the warning, set ``filter_func`` explicitly.
160160
161161
162162
There are two ways to do some post processing of the data obtained from the

src/datajudge/requirements.py

+30-30
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ def add_uniques_equality_constraint(
278278
the ``NullAbsence`` constraint via the ``add_null_absence_constraint`` helper method
279279
for ``WithinRequirement``.
280280
By default, the null filtering does not trigger if multiple columns are fetched at once.
281-
It can be configured in more detail by supplying a custom `filter_func` function.
282-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
283-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
281+
It can be configured in more detail by supplying a custom ``filter_func`` function.
282+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
283+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
284284
For new deployments, using one of the above filters or a custom one is recommended.
285-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
285+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
286286
The deprecated default may change in future versions.
287-
To silence the warning, set `filter_func` explicitly.
287+
To silence the warning, set ``filter_func`` explicitly.
288288
289289
See the ``Uniques`` class for further parameter details on ``map_func`` and
290290
``reduce_func``, and ``output_postprocessing_sorter``.
@@ -327,13 +327,13 @@ def add_uniques_superset_constraint(
327327
the ``NullAbsence`` constraint via the ``add_null_absence_constraint`` helper method
328328
for ``WithinRequirement``.
329329
By default, the null filtering does not trigger if multiple columns are fetched at once.
330-
It can be configured in more detail by supplying a custom `filter_func` function.
331-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
332-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
330+
It can be configured in more detail by supplying a custom ``filter_func`` function.
331+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
332+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
333333
For new deployments, using one of the above filters or a custom one is recommended.
334-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
334+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
335335
The deprecated default may change in future versions.
336-
To silence the warning, set `filter_func` explicitly.
336+
To silence the warning, set ``filter_func`` explicitly.
337337
338338
``max_relative_violations`` indicates what fraction of unique values of the given
339339
``DataSource`` are not represented in the reference set of unique values. Please
@@ -387,13 +387,13 @@ def add_uniques_subset_constraint(
387387
the ``NullAbsence`` constraint via the ``add_null_absence_constraint`` helper method
388388
for ``WithinRequirement``.
389389
By default, the null filtering does not trigger if multiple columns are fetched at once.
390-
It can be configured in more detail by supplying a custom `filter_func` function.
391-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
392-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
390+
It can be configured in more detail by supplying a custom ``filter_func`` function.
391+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
392+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
393393
For new deployments, using one of the above filters or a custom one is recommended.
394-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
394+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
395395
The deprecated default may change in future versions.
396-
To silence the warning, set `filter_func` explicitly.
396+
To silence the warning, set ``filter_func`` explicitly.
397397
398398
399399
``max_relative_violations`` indicates what fraction of rows of the given table
@@ -1488,13 +1488,13 @@ def add_uniques_equality_constraint(
14881488
the ``NullAbsence`` constraint via the ``add_null_absence_constraint`` helper method
14891489
for ``WithinRequirement``.
14901490
By default, the null filtering does not trigger if multiple columns are fetched at once.
1491-
It can be configured in more detail by supplying a custom `filter_func` function.
1492-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
1493-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
1491+
It can be configured in more detail by supplying a custom ``filter_func`` function.
1492+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
1493+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
14941494
For new deployments, using one of the above filters or a custom one is recommended.
1495-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
1495+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
14961496
The deprecated default may change in future versions.
1497-
To silence the warning, set `filter_func` explicitly.
1497+
To silence the warning, set ``filter_func`` explicitly.
14981498
14991499
See the ``Uniques`` class for further parameter details on ``map_func``,
15001500
``reduce_func``, and ``output_postprocessing_sorter``.
@@ -1540,13 +1540,13 @@ def add_uniques_superset_constraint(
15401540
the ``NullAbsence`` constraint via the ``add_null_absence_constraint`` helper method
15411541
for ``WithinRequirement``.
15421542
By default, the null filtering does not trigger if multiple columns are fetched at once.
1543-
It can be configured in more detail by supplying a custom `filter_func` function.
1544-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
1545-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
1543+
It can be configured in more detail by supplying a custom ``filter_func`` function.
1544+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
1545+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
15461546
For new deployments, using one of the above filters or a custom one is recommended.
1547-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
1547+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
15481548
The deprecated default may change in future versions.
1549-
To silence the warning, set `filter_func` explicitly.
1549+
To silence the warning, set ``filter_func`` explicitly.
15501550
15511551
``max_relative_violations`` indicates what fraction of unique values of the given
15521552
``DataSource`` are not represented in the reference set of unique values. Please
@@ -1602,13 +1602,13 @@ def add_uniques_subset_constraint(
16021602
the ``NullAbsence`` constraint via the ``add_null_absence_constraint`` helper method
16031603
for ``WithinRequirement``.
16041604
By default, the null filtering does not trigger if multiple columns are fetched at once.
1605-
It can be configured in more detail by supplying a custom `filter_func` function.
1606-
Some exemplary implementations are available in this module as `util_filternull_default_deprecated`,
1607-
`util_filternull_never`, `util_filternull_element_or_tuple_all`, `util_filternull_element_or_tuple_any`.
1605+
It can be configured in more detail by supplying a custom ``filter_func`` function.
1606+
Some exemplary implementations are available in this module as ``util_filternull_default_deprecated``,
1607+
``util_filternull_never``, ``util_filternull_element_or_tuple_all``, ``util_filternull_element_or_tuple_any``.
16081608
For new deployments, using one of the above filters or a custom one is recommended.
1609-
Passing None as the argument is equivalent to `util_filternull_default_deprecated`, but triggers a warning.
1609+
Passing None as the argument is equivalent to ``util_filternull_default_deprecated``, but triggers a warning.
16101610
The deprecated default may change in future versions.
1611-
To silence the warning, set `filter_func` explicitly.
1611+
To silence the warning, set ``filter_func`` explicitly.
16121612
16131613
``max_relative_violations`` indicates what fraction of rows of the given table
16141614
may have values not included in the reference set of unique values. Please note

0 commit comments

Comments
 (0)