Skip to content

Commit d478219

Browse files
authored
refactor(typing): remove unused tuple_types_regex from typing utils (#4425)
* refactor(typing): remove unused `tuple_types_regex` from typing utils * Update typing.py
1 parent 673c1e9 commit d478219

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

litestar/utils/typing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import re
43
from collections import abc, defaultdict, deque
54
from typing import (
65
AbstractSet,
@@ -55,13 +54,6 @@
5554
T = TypeVar("T")
5655
UnionT = TypeVar("UnionT", bound="Union") # pyright: ignore
5756

58-
tuple_types_regex = re.compile(
59-
"^"
60-
+ "|".join(
61-
[*[repr(x) for x in (List, Sequence, Iterable, Iterator, Tuple, Deque)], "tuple", "list", "collections.deque"]
62-
)
63-
)
64-
6557
instantiable_type_mapping = {
6658
AbstractSet: set,
6759
DefaultDict: defaultdict,

0 commit comments

Comments
 (0)