Skip to content

Commit

Permalink
run bump-pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
abersnaze committed Oct 28, 2024
1 parent 768b380 commit 3722c2b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions service_capacity_modeling/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import numpy as np
from pydantic import BaseModel
from pydantic import ConfigDict
from pydantic import Field

GIB_IN_BYTES = 1024 * 1024 * 1024
Expand Down Expand Up @@ -65,10 +66,7 @@ class Interval(ExcludeUnsetModel):

minimum_value: Optional[float] = None
maximum_value: Optional[float] = None

class Config:
frozen = True
protected_namespaces = ()
model_config = ConfigDict(frozen=True, protected_namespaces=())

@property
def can_simulate(self):
Expand Down Expand Up @@ -318,7 +316,7 @@ class Instance(ExcludeUnsetModel):
cpu_ghz: float
ram_gib: float
net_mbps: float
drive: Optional[Drive]
drive: Optional[Drive] = None
annual_cost: float = 0
lifecycle: Lifecycle = Lifecycle.stable
# Typically hardware has a single platform, but sometimes they can act in multiple
Expand Down

0 comments on commit 3722c2b

Please sign in to comment.