Skip to content

Commit 0e52fdd

Browse files
author
Andrei Neagu
committed
pylint
1 parent 8ce43ab commit 0e52fdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/models-library/src/models_library/clusters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from enum import auto
22
from pathlib import Path
3-
from typing import Final, Literal, Self, TypeAlias
3+
from typing import Annotated, Final, Literal, Self, TypeAlias
44

55
from pydantic import (
66
AnyUrl,
@@ -142,7 +142,9 @@ class BaseCluster(BaseModel):
142142
authentication: ClusterAuthentication = Field(
143143
..., description="Dask gateway authentication", discriminator="type"
144144
)
145-
access_rights: dict[GroupID, ClusterAccessRights] = Field(default_factory=dict)
145+
access_rights: Annotated[
146+
dict[GroupID, ClusterAccessRights], Field(default_factory=dict)
147+
]
146148

147149
_from_equivalent_enums = field_validator("type", mode="before")(
148150
create_enums_pre_validator(ClusterTypeInModel)

0 commit comments

Comments
 (0)