|
1 | 1 | import os |
2 | 2 | from pathlib import Path |
3 | | -from typing import List, Optional, Union |
| 3 | +from typing import Dict, List, Optional, Union |
4 | 4 |
|
5 | 5 | from pydantic import BaseModel |
6 | 6 |
|
@@ -38,7 +38,7 @@ class PagePackagePage(BaseModel): |
38 | 38 | fileURLPath: Optional[str] |
39 | 39 | """Similar to fileURL, but gets appended to the baseURL value set for the package, |
40 | 40 | if one was set.""" |
41 | | - slots: dict[str, PagePackagePageSlot] |
| 41 | + slots: Dict[str, PagePackagePageSlot] |
42 | 42 | """Slots used to store data, e.g., the main slot, storing the wiki text of the |
43 | 43 | page. Other slots could be jsondata, jsonschema etc.""" |
44 | 44 |
|
@@ -155,7 +155,7 @@ class PagePackageBundle(BaseModel): |
155 | 155 | (usually) two-letter IETF language tag for that language.""" |
156 | 156 | licenseName: Optional[str] = "CC BY-NC 4.0" |
157 | 157 | """The default license under which these packages are published.""" |
158 | | - packages: dict[str, PagePackage] |
| 158 | + packages: Dict[str, PagePackage] |
159 | 159 | """Holds the set of packages, with the package name as the key |
160 | 160 | and the set of package parameters as the values.""" |
161 | 161 |
|
|
0 commit comments