Skip to content

Commit

Permalink
file_table: regular_file: no need to define a global scope typing for…
Browse files Browse the repository at this point in the history
… prepare_method
  • Loading branch information
Bodong-Yang committed Dec 20, 2024
1 parent 1a89f56 commit 4fefa64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ota_metadata/file_table/_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

CANONICAL_ROOT = "/"

PrepareMethod = Literal["move", "hardlink", "copy"]


class FileTableBase(BaseModel):
schema_ver: ClassVar[Literal[1]] = 1
Expand Down Expand Up @@ -110,7 +108,7 @@ def prepare_target(
_rs: StrOrPath,
*,
target_mnt: StrOrPath,
prepare_method: PrepareMethod,
prepare_method: Literal["move", "hardlink", "copy"],
) -> None:
_target_on_mnt = self.fpath_on_target(target_mnt=target_mnt)

Expand Down

0 comments on commit 4fefa64

Please sign in to comment.