Skip to content

Commit

Permalink
fix usage of NotRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorcary committed Jan 30, 2025
1 parent c58588f commit 711849d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middlewared/middlewared/api/v25_04_0/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pydantic import Field, PositiveInt

from middlewared.api.base import BaseModel, NotRequired, NotRequiredModel
from middlewared.api.base import BaseModel, NotRequired


__all__ = [
Expand All @@ -17,7 +17,7 @@ class BootAttachOptions(BaseModel):
expand: bool = False


class BootFormatOptions(NotRequiredModel):
class BootFormatOptions(BaseModel):
size: int = NotRequired
legacy_schema: Literal["BIOS_ONLY", "EFI_ONLY", None] = None

Expand Down

0 comments on commit 711849d

Please sign in to comment.