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
|
@ -10,7 +10,7 @@ import glob
|
|||
import json
|
||||
import os
|
||||
import shutil
|
||||
from typing import Any, Optional
|
||||
from typing import Any
|
||||
|
||||
import pmb.aportgen
|
||||
import pmb.config
|
||||
|
@ -600,7 +600,7 @@ def ask_for_mirror():
|
|||
return mirror
|
||||
|
||||
|
||||
def ask_for_hostname(default: Optional[str], device):
|
||||
def ask_for_hostname(default: str | None, device):
|
||||
while True:
|
||||
ret = pmb.helpers.cli.ask(
|
||||
"Device hostname (short form, e.g. 'foo')", None, (default or device), True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue