mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
refactor: ruff autofixes
This commit is contained in:
455 files changed
+12322
-14762
No files matched your search
@@ -32,13 +32,11 @@ class PrivilegeBase(BaseModel):
|
||||
|
||||
|
||||
class Privilege(DateTimeModelMixin, PrivilegeBase):
|
||||
|
||||
privilege_id: UUID
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class ACEType(str, Enum):
|
||||
|
||||
user = "user"
|
||||
group = "group"
|
||||
|
||||
@@ -75,7 +73,6 @@ class ACEUpdate(ACEBase):
|
||||
|
||||
|
||||
class ACE(DateTimeModelMixin, ACEBase):
|
||||
|
||||
ace_id: UUID
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
@@ -106,7 +103,6 @@ class RoleUpdate(RoleBase):
|
||||
|
||||
|
||||
class Role(DateTimeModelMixin, RoleBase):
|
||||
|
||||
role_id: UUID
|
||||
is_builtin: bool
|
||||
privileges: List[Privilege]
|
||||
|
||||
Reference in new issue
Block a user