Skip to content

Commit

Permalink
Additional fixes for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sciyoshi committed Nov 16, 2023
1 parent 7dc9a42 commit c2eb59c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prosemirror/test_builder/build.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# type: ignore

import re
from typing import Any, Callable, List, Union
from typing import Any, Callable, Dict, List, Tuple, Union

from prosemirror.model import Node, Schema
from prosemirror.utils import JSONDict
Expand All @@ -13,7 +13,7 @@ def flatten(
schema: Schema[Any, Any],
children: List[Union[Node, JSONDict, str]],
f: Callable[[Node], Node],
) -> tuple[List[Node], dict[str, int]]:
) -> Tuple[List[Node], Dict[str, int]]:
result, pos, tag = [], 0, NO_TAG

for child in children:
Expand Down

0 comments on commit c2eb59c

Please sign in to comment.