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 2024 Oliver Smith
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
from typing import Optional
|
||||
from pmb.core.arch import Arch
|
||||
from pmb.core.chroot import Chroot, ChrootType
|
||||
from pmb.core.context import Context
|
||||
|
@ -43,7 +42,7 @@ class RepoBootstrap(commands.Command):
|
|||
f"Couldn't find section 'repo:{self.repo}' in pmaports.cfg of" " current branch"
|
||||
)
|
||||
|
||||
def __init__(self, arch: Optional[Arch], repository: str):
|
||||
def __init__(self, arch: Arch | None, repository: str):
|
||||
context = get_context()
|
||||
if arch:
|
||||
self.arch = arch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue