From 3003a0bd679df40bbc5b7b3afb6b7c9c48164594 Mon Sep 17 00:00:00 2001 From: Mariotaku Date: Mon, 2 Oct 2023 15:01:24 +0900 Subject: [PATCH] better typing for funding info --- repogen/pkg_registery.py | 4 ++-- requirements.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/repogen/pkg_registery.py b/repogen/pkg_registery.py index fcb9ddf..75b6301 100644 --- a/repogen/pkg_registery.py +++ b/repogen/pkg_registery.py @@ -1,6 +1,6 @@ import importlib from pathlib import Path -from typing import TypedDict, NotRequired, Literal +from typing import TypedDict, NotRequired, Literal, List import yaml @@ -19,7 +19,7 @@ class PackageRegistry(TypedDict): pool: Literal['main', 'non-free'] requirements: NotRequired[PackageRequirements] detailIconUri: NotRequired[str] - funding: NotRequired[dict] + funding: NotRequired[dict[str, List[str]]] def parse_yml_package(p: Path) -> (str, PackageRegistry): diff --git a/requirements.txt b/requirements.txt index 51263cb..facf0b5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,5 +14,6 @@ ar~=0.3.2 jsonschema~=4.19.1 semantic-version~=2.10.0 shellescape~=3.8.1 +lxml~=4.9.2 git+https://github.com/Kronuz/pyScss.git@60414f5d573315a8458b5fbcdf69e5c648c44a9a#egg=pyscss git+https://github.com/webosbrew/pelican-theme-webosbrew.git@v1.0.9#egg=pelican-theme-webosbrew \ No newline at end of file