1
0
Fork 1
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:
Oliver Smith 2024-06-23 18:56:04 +02:00
parent 61cb4f4abb
commit 18fa4e58a3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
47 changed files with 137 additions and 147 deletions

View file

@ -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