Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class GridoptimizationServiceState(BaseModel):
This represents the current state of a gridoptimization service
"""

class Config(BaseModel.Config):
class Config:
extra = Extra.forbid
allow_mutation = True
validate_assignment = True
Expand Down
2 changes: 1 addition & 1 deletion qcfractal/qcfractal/components/neb/record_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class NEBServiceState(BaseModel):
This represents the current state of a NEB service
"""

class Config(BaseModel.Config):
class Config:
extra = Extra.forbid
allow_mutation = True
validate_assignment = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TorsiondriveServiceState(BaseModel):
This represents the current state of a torsiondrive service
"""

class Config(BaseModel.Config):
class Config:
extra = Extra.forbid
allow_mutation = True
validate_assignment = True
Expand Down
2 changes: 1 addition & 1 deletion qcfractalcompute/qcfractalcompute/compute_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ManagerStatistics(BaseModel):
Manager statistics
"""

class Config(BaseModel.Config):
class Config:
extra = Extra.forbid

last_update_time: float = Field(default_factory=time.time)
Expand Down
2 changes: 1 addition & 1 deletion qcportal/qcportal/record_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Provenance(BaseModel):
version: str = Field("", description="The version of the creator, blank otherwise")
routine: str = Field("", description="The name of the routine or function within the creator, blank otherwise.")

class Config(BaseModel.Config):
class Config:
extra: str = "allow"


Expand Down
4 changes: 2 additions & 2 deletions qcportal/qcportal/singlepoint/record_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class Model(BaseModel):
description="The quantum chemistry method to evaluate (e.g., B3LYP, PBE, ...). "
"For MM, name of the force field.",
)
basis: Optional[Union[str, BasisSet]] = Field( # type: ignore
basis: Optional[str] = Field( # type: ignore
None,
description="The quantum chemistry basis set to evaluate (e.g., 6-31g, cc-pVDZ, ...). Can be ``None`` for "
"methods without basis sets. For molecular mechanics, name of the atom-typer.",
)

class Config(BaseModel.Config):
class Config:
extra: str = "allow"


Expand Down
Loading