Skip to content

Commit c18f724

Browse files
committed
fix: type 'dict' needs to be replaced with 'Dict'
Refs: #19
1 parent 03d6734 commit c18f724

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/osw/model/page_package.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from pathlib import Path
3-
from typing import List, Optional, Union
3+
from typing import Dict, List, Optional, Union
44

55
from pydantic import BaseModel
66

@@ -38,7 +38,7 @@ class PagePackagePage(BaseModel):
3838
fileURLPath: Optional[str]
3939
"""Similar to fileURL, but gets appended to the baseURL value set for the package,
4040
if one was set."""
41-
slots: dict[str, PagePackagePageSlot]
41+
slots: Dict[str, PagePackagePageSlot]
4242
"""Slots used to store data, e.g., the main slot, storing the wiki text of the
4343
page. Other slots could be jsondata, jsonschema etc."""
4444

@@ -155,7 +155,7 @@ class PagePackageBundle(BaseModel):
155155
(usually) two-letter IETF language tag for that language."""
156156
licenseName: Optional[str] = "CC BY-NC 4.0"
157157
"""The default license under which these packages are published."""
158-
packages: dict[str, PagePackage]
158+
packages: Dict[str, PagePackage]
159159
"""Holds the set of packages, with the package name as the key
160160
and the set of package parameters as the values."""
161161

0 commit comments

Comments
 (0)