mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
Ruff: fix typing.Xxx
is deprecated, use xxx
instead (MR 2327)
This commit is contained in:
parent
61cb4f4abb
commit
18fa4e58a3
47 changed files with 137 additions and 147 deletions
|
@ -2,7 +2,6 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
import configparser
|
||||
from pathlib import Path
|
||||
from typing import Dict
|
||||
from pmb.core.context import get_context
|
||||
from pmb.core.pkgrepo import pkgrepo_path
|
||||
from pmb.helpers import logging
|
||||
|
@ -143,7 +142,7 @@ def parse_channels_cfg(aports: Path):
|
|||
)
|
||||
|
||||
# Meta section
|
||||
ret: Dict[str, Dict[str, str | Dict[str, str]]] = {"channels": {}}
|
||||
ret: dict[str, dict[str, str | dict[str, str]]] = {"channels": {}}
|
||||
ret["meta"] = {"recommended": cfg.get("channels.cfg", "recommended")}
|
||||
|
||||
# Channels
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue