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,10 +1,9 @@
|
|||
# Copyright 2023 Lary Gibaud
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
import re
|
||||
from typing import Optional
|
||||
|
||||
|
||||
def arm_big_little_first_group_ncpus() -> Optional[int]:
|
||||
def arm_big_little_first_group_ncpus() -> int | None:
|
||||
"""
|
||||
Infer from /proc/cpuinfo on aarch64 if this is a big/little architecture
|
||||
(if there is different processor models) and the number of cores in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue