forked from Mirror/pmbootstrap
Run ruff check --fix (MR 2357)
Now that we have target-version = "py310" in [tool.ruff] in pyproject.toml, ruff check complains about using typing.Optional and typing.Union instead of newer syntax. Run the tool to fix it.
This commit is contained in:
parent
9fd45fb334
commit
36dd53f402
25 changed files with 116 additions and 130 deletions
|
@ -1,6 +1,5 @@
|
|||
# Copyright 2023 Oliver Smith
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
from typing import Optional
|
||||
import pmb.config.pmaports
|
||||
from pmb.core.chroot import Chroot
|
||||
from pmb.core.context import get_context
|
||||
|
@ -20,8 +19,8 @@ def variables(args: PmbArgs, flavor: str, method: str):
|
|||
# updated and minimum pmbootstrap version bumped.
|
||||
# See also https://gitlab.com/postmarketOS/pmbootstrap/-/issues/2243
|
||||
|
||||
_partition_kernel: Optional[str]
|
||||
_partition_rootfs: Optional[str]
|
||||
_partition_kernel: str | None
|
||||
_partition_rootfs: str | None
|
||||
|
||||
if method.startswith("fastboot"):
|
||||
_partition_kernel = deviceinfo.flash_fastboot_partition_kernel or "boot"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue