general: migrate modules to use 3.9 features

This commit is contained in:
Dima Gerasimov 2024-10-19 22:10:40 +01:00
parent d3f9a8e8b6
commit d915c848e9
125 changed files with 889 additions and 739 deletions

View file

@ -7,6 +7,7 @@ from __future__ import annotations
import html
import json # hmm interesting enough, orjson didn't give much speedup here?
from abc import abstractmethod
from collections.abc import Iterator, Sequence
from dataclasses import dataclass
from datetime import datetime
from functools import cached_property
@ -14,8 +15,6 @@ from itertools import chain
from pathlib import Path
from typing import (
TYPE_CHECKING,
Iterator,
Sequence,
)
from more_itertools import unique_everseen