Skip to content

Commit 940e625

Browse files
committed
Replace deprecated config parameter
1 parent d779c98 commit 940e625

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backend/infrahub/core/schema/attribute_parameters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
from typing import Self
55

6-
from pydantic import Field, model_validator
6+
from pydantic import ConfigDict, Field, model_validator
77

88
from infrahub.core.constants.schema import UpdateSupport
99
from infrahub.core.models import HashableModel
@@ -19,8 +19,7 @@ def get_attribute_parameters_class_for_kind(kind: str) -> type[AttributeParamete
1919

2020

2121
class AttributeParameters(HashableModel):
22-
class Config:
23-
extra = "forbid"
22+
model_config = ConfigDict(extra="forbid")
2423

2524

2625
class NumberPoolParameters(AttributeParameters):

0 commit comments

Comments
 (0)