Skip to content

Commit 130de0a

Browse files
committed
[clean] remove unneeded validator, assigning class_, for GroupBase
1 parent 80bbdc1 commit 130de0a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/oqd_dataschema/base.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ def __init_subclass__(cls, **kwargs):
7474
# Auto-register new group types
7575
GroupRegistry.register(cls)
7676

77-
@model_validator(mode="before")
78-
@classmethod
79-
def auto_assign_class(cls, data):
80-
if isinstance(data, BaseModel):
81-
return data
82-
if isinstance(data, dict):
83-
data["class_"] = cls.__name__
84-
return data
85-
8677

8778
class Dataset(BaseModel, extra="forbid"):
8879
"""

0 commit comments

Comments
 (0)