Skip to content

Commit 991ffda

Browse files
committed
dicts
1 parent 350728f commit 991ffda

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

nodescraper/models/analyzerargs.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ class AnalyzerArgs(BaseModel):
3333
3434
This class provides automatic string stripping for all string values
3535
in analyzer args. All analyzer args classes should inherit from this
36-
instead of BaseModel directly.
36+
directly.
3737
38-
The strip_string_values validator runs in mode="before", which means
39-
it executes before any field validators in child classes. This ensures
40-
all string inputs are cleaned of leading/trailing whitespace before
41-
any further processing.
4238
"""
4339

4440
model_config = {"extra": "forbid", "exclude_none": True}
@@ -54,9 +50,6 @@ def strip_string_values(cls, data: Any) -> Any:
5450
- Dicts: strips string values in dicts
5551
- Other types: left unchanged
5652
57-
Runs in mode="before" to ensure stripping happens before any
58-
field validators execute in child classes.
59-
6053
Args:
6154
data: The input data to validate
6255

0 commit comments

Comments
 (0)