huggingface_hub
New `@strict` decorator for dataclass validation
#2895
Merged

New `@strict` decorator for dataclass validation #2895

Wauplin
Wauplin New @strict_dataclass decorator
1eaaf34d
Wauplin expose main methods
e2fb2f98
Wauplin typog
34c44932
Wauplin Wauplin requested a review from julien-c julien-c 295 days ago
Wauplin Wauplin requested a review from gante gante 295 days ago
Wauplin Wauplin requested a review from LysandreJik LysandreJik 295 days ago
Wauplin Wauplin requested a review from hanouticelina hanouticelina 295 days ago
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
c63f253f
HuggingFaceDocBuilderDev
ArthurZucker
ArthurZucker commented on 2025-03-04
gante
Wauplin
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
b4e836ab
Wauplin Support Literal[...] type
b1720fa4
Wauplin
hanouticelina
hanouticelina approved these changes on 2025-03-07
gante
Wauplin Update src/huggingface_hub/utils/_strict_dataclass.py
c0ccebda
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
a40a6b9f
Wauplin nit
e283e4ea
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
cdfb9cc5
Wauplin accept kwargs
be866bfc
Wauplin Accept kwargs, move to huggingface.dataclasses, fix autocompletion, a…
f5820362
Wauplin docs
a0412bc0
Wauplin Wauplin changed the title New `@strict_dataclass` decorator for dataclass validation New `@strict` decorator for dataclass validation 234 days ago
Wauplin Wauplin marked this pull request as ready for review 234 days ago
Wauplin Wauplin changed the title New `@strict` decorator for dataclass validation [RFC] New `@strict` decorator for dataclass validation 234 days ago
gante
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
d61df607
Wauplin @as_validated_field decorator
de825f14
Wauplin code quality
4c72af3f
Wauplin class validators
27ca2d71
Wauplin Wauplin changed the title [RFC] New `@strict` decorator for dataclass validation New `@strict` decorator for dataclass validation 220 days ago
Wauplin Wauplin requested a review from hanouticelina hanouticelina 220 days ago
Wauplin Wauplin requested a review from ArthurZucker ArthurZucker 220 days ago
Wauplin
Wauplin inherit class validators from not strict classes
b8537feb
hanouticelina
hanouticelina commented on 2025-05-14
Wauplin Update docs/source/en/package_reference/dataclasses.md
e30f96be
Wauplin remove duplicated definition of _setattr
e484ba79
Wauplin Update docs/source/en/package_reference/dataclasses.md
5e62fef9
Wauplin optional is an alias for union[, None]
5bd0f3d9
Wauplin Merge branch 'first-draft-for-strict-dataclass' of github.com:hugging…
4d3c7256
Wauplin dumb tests
eb68b405
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
1244c4fa
Wauplin Raise if already defined by user
c84df4ba
Wauplin docs
a6d80e1a
Wauplin Merge branch 'main' into first-draft-for-strict-dataclass
648f249d
Wauplin
gante
gante commented on 2025-05-15
Wauplin Update docs/source/en/package_reference/dataclasses.md
4f4a96e6
Wauplin Update docs/source/en/package_reference/dataclasses.md
3861a39f
Wauplin doc
05a95edb
hanouticelina
hanouticelina approved these changes on 2025-05-16
ArthurZucker
ArthurZucker approved these changes on 2025-05-16
hanouticelina
hanouticelina hanouticelina merged 7a45b41d into main 215 days ago
hanouticelina hanouticelina deleted the first-draft-for-strict-dataclass branch 215 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone