Skip to content

Commit 8399a11

Browse files
committed
Fix docs
1 parent de6002b commit 8399a11

File tree

69 files changed

+400
-343
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+400
-343
lines changed

docs/source/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,25 @@
1212
"sphinx.ext.napoleon",
1313
]
1414

15+
autodoc_default_options = {
16+
"show-inheritance": True,
17+
}
18+
1519
autodoc_member_order = "bysource"
1620
autodoc_typehints = "description"
1721
autoclass_content = "both"
1822

23+
autodoc_type_aliases = {
24+
"EstimatorPubLike": "EstimatorPubLike",
25+
"SamplerPubLike": "SamplerPubLike",
26+
}
27+
28+
autosummary_generate = True
29+
autosummary_generate_overwrite = False
30+
31+
napoleon_google_docstring = True
32+
napoleon_numpy_docstring = False
33+
1934
sys.path.insert(0, os.path.abspath("../.."))
2035

2136
templates_path = []

flask_inputfilter/_input_filter.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ cdef class InputFilter:
436436
given dictionary of data to the instance for further processing. It
437437
updates the internal state using the provided data.
438438
439-
Parameters:
440-
data (dict[str, Any]): A dictionary containing the unfiltered
439+
**Parameters**:
440+
441+
- data (dict[str, Any]): A dictionary containing the unfiltered
441442
data to be associated with the instance.
442443
"""
443444
self.data = data

flask_inputfilter/conditions/custom_condition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class CustomCondition(BaseCondition):
1313
**Parameters:**
1414
1515
- **condition** (*Callable[[dict[str, Any]], bool]*): A function that
16-
takes the input data and returns a boolean indicating whether the
17-
condition is met.
16+
takes the input data and returns a boolean indicating whether the
17+
condition is met.
1818
1919
**Expected Behavior:**
2020

flask_inputfilter/conditions/required_if_condition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class RequiredIfCondition(BaseCondition):
1313
1414
- **condition_field** (*str*): The field whose value is checked.
1515
- **value** (*Optional[Union[Any, list[Any]]]*): The value(s) that
16-
trigger the requirement.
16+
trigger the requirement.
1717
- **required_field** (*str*): The field that becomes required if the
18-
condition is met.
18+
condition is met.
1919
2020
**Expected Behavior:**
2121

flask_inputfilter/filters/array_element_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ArrayElementFilter(BaseFilter):
1212
**Parameters:**
1313
1414
- **element_filter** (*BaseFilter* | *list[BaseFilter]*): A filter or a
15-
list of filters to apply to each element in the array.
15+
list of filters to apply to each element in the array.
1616
1717
**Expected Behavior:**
1818

flask_inputfilter/filters/array_explode_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ArrayExplodeFilter(BaseFilter):
1212
**Parameters:**
1313
1414
- **delimiter** (*str*, default: ``","``): The delimiter used to split
15-
the string.
15+
the string.
1616
1717
**Expected Behavior:**
1818

flask_inputfilter/filters/base_64_image_downscale_filter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ class Base64ImageDownscaleFilter(BaseFilter):
1717
**Parameters:**
1818
1919
- **size** (*Optional[int]*, default: ``1024 * 1024``): A rough pixel
20-
count used to compute default dimensions.
20+
count used to compute default dimensions.
2121
- **width** (*Optional[int]*, default: ``size**0.5``): The target width.
22-
If not provided, it is calculated as ``sqrt(size)``.
22+
If not provided, it is calculated as ``sqrt(size)``.
2323
- **height** (*Optional[int]*, default: ``size**0.5``): The target height.
24-
If not provided, it is calculated as ``sqrt(size)``.
24+
If not provided, it is calculated as ``sqrt(size)``.
2525
- **proportionally** (*bool*, default: ``True``): Determines if the image
26-
should be scaled proportionally. If ``False``, the image is
27-
forcefully resized to the specified width and height.
26+
should be scaled proportionally. If ``False``, the image is
27+
forcefully resized to the specified width and height.
2828
2929
**Expected Behavior:**
3030

flask_inputfilter/filters/base_64_image_resize_filter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class Base64ImageResizeFilter(BaseFilter):
1818
**Parameters:**
1919
2020
- **max_size** (*int*, default: ``4 * 1024 * 1024``): The maximum
21-
allowed file size in bytes.
21+
allowed file size in bytes.
2222
- **format** (*ImageFormatEnum*, default: ``ImageFormatEnum.JPEG``):
23-
The output image format.
23+
The output image format.
2424
- **preserve_icc_profile** (*bool*, default: ``False``): If set to
25-
``True``, the ICC profile is preserved.
25+
``True``, the ICC profile is preserved.
2626
- **preserve_metadata** (*bool*, default: ``False``): If set to ``True``,
27-
image metadata is preserved.
27+
image metadata is preserved.
2828
2929
**Expected Behavior:**
3030

flask_inputfilter/filters/blacklist_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class BlacklistFilter(BaseFilter):
1212
**Parameters:**
1313
1414
- **blacklist** (*list[str]*): A list of substrings (for strings) or keys
15-
(for dictionaries) that should be removed.
15+
(for dictionaries) that should be removed.
1616
1717
**Expected Behavior:**
1818
1919
- For strings: Removes any occurrence of blacklisted items and trims
20-
whitespace.
20+
whitespace.
2121
- For lists: Filters out items present in the blacklist.
2222
- For dictionaries: Removes key-value pairs where the key is blacklisted.
2323

flask_inputfilter/filters/to_dataclass_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ToDataclassFilter(BaseFilter):
1212
**Parameters:**
1313
1414
- **dataclass_type** (*Type[dict]*): The target dataclass type
15-
that the dictionary should be converted into.
15+
that the dictionary should be converted into.
1616
1717
**Expected Behavior:**
1818

0 commit comments

Comments
 (0)