Skip to content

Commit

Permalink
fix: type 'dict' needs to be replaced with 'Dict'
Browse files Browse the repository at this point in the history
Refs: #19
  • Loading branch information
simontaurus committed Jun 9, 2023
1 parent 03d6734 commit c18f724
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osw/model/page_package.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from pathlib import Path
from typing import List, Optional, Union
from typing import Dict, List, Optional, Union

from pydantic import BaseModel

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

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

Expand Down

0 comments on commit c18f724

Please sign in to comment.