From c2eb59cbb96fc3278325b7831d2bdfa66d6614b1 Mon Sep 17 00:00:00 2001 From: Samuel Cormier-Iijima Date: Thu, 16 Nov 2023 14:58:40 -0500 Subject: [PATCH] Additional fixes for 3.8 --- prosemirror/test_builder/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prosemirror/test_builder/build.py b/prosemirror/test_builder/build.py index 4907ca2..fa5ecd6 100644 --- a/prosemirror/test_builder/build.py +++ b/prosemirror/test_builder/build.py @@ -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 @@ -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: