Skip to content

Commit

Permalink
py 3.8 type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kraktus committed Jan 7, 2024
1 parent abe6903 commit b479f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions berserk/clients/studies.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import cast, Iterator
from typing import cast, List, Iterator

from ..formats import PGN
from ..types.common import Color, Variant
Expand Down Expand Up @@ -45,7 +45,7 @@ def import_pgn(
pgn: str,
orientation: Color = "white",
variant: Variant = "standard",
) -> list[ChapterIdName]:
) -> List[ChapterIdName]:
"""Imports arbitrary PGN into an existing study.
Creates a new chapter in the study.
Expand All @@ -64,5 +64,5 @@ def import_pgn(
}
# The return is of the form:
return cast(
list[ChapterIdName], self._r.post(path, data=payload).get("chapters", [])
List[ChapterIdName], self._r.post(path, data=payload).get("chapters", [])
)

0 comments on commit b479f3c

Please sign in to comment.