Skip to content

Commit

Permalink
Suppress pydantic protected namespace error
Browse files Browse the repository at this point in the history
  • Loading branch information
j4asper committed Sep 26, 2023
1 parent 1d3ef8b commit a837704
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dmr/models/vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from pydantic import (
BaseModel,
create_model,
ConfigDict,
)


Expand Down Expand Up @@ -42,6 +43,7 @@ class Vehicle(BaseModel):
particle_filter: Whether the vehicle has a particle filter
insurance: An insurance object
"""
model_config = ConfigDict(protected_namespaces=())
make: str
model: str
variant: str
Expand Down

0 comments on commit a837704

Please sign in to comment.