import re
import struct
from math import prod
-from typing import Any, cast, Callable, Pattern, Set
+from typing import Any, cast, Callable, Pattern
from .. import pq
from .. import errors as e
else:
return max(imax, -imin - 1)
- def _flatiter(self, L: list[Any], seen: Set[int]) -> Any:
+ def _flatiter(self, L: list[Any], seen: set[int]) -> Any:
if id(L) in seen:
raise e.DataError("cannot dump a recursive list")
from math import isnan
from uuid import UUID
from random import choice, random, randrange
-from typing import Any, Set
+from typing import Any
from decimal import Decimal
from contextlib import contextmanager, asynccontextmanager
m = self.get_matcher(spec)
m(spec, g, w)
- def get_supported_types(self) -> Set[type]:
+ def get_supported_types(self) -> set[type]:
dumpers = self.conn.adapters._dumpers[self.format]
rv = set()
for cls in dumpers.keys():