Skip to content

Commit

Permalink
better typing for funding info
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Oct 2, 2023
1 parent f347f0a commit 3003a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repogen/pkg_registery.py
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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):
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]#egg=pelican-theme-webosbrew

0 comments on commit 3003a0b

Please sign in to comment.