import Sequence et al from collections.abc not typing

This commit is contained in:
Jan Petykiewicz 2024-07-28 19:33:16 -07:00
commit 6ec94fb3c3
28 changed files with 45 additions and 28 deletions

View file

@ -6,7 +6,8 @@ Notes:
* ezdxf sets creation time, write time, $VERSIONGUID, and $FINGERPRINTGUID
to unique values, so byte-for-byte reproducibility is not achievable for now
"""
from typing import Any, Callable, Mapping, cast, TextIO, IO
from typing import Any, cast, TextIO, IO
from collections.abc import Mapping, Callable
import io
import logging
import pathlib

View file

@ -19,7 +19,8 @@ Notes:
* GDS creation/modification/access times are set to 1900-01-01 for reproducibility.
* Gzip modification time is set to 0 (start of current epoch, usually 1970-01-01)
"""
from typing import Callable, Iterable, Mapping, IO, cast, Any
from typing import IO, cast, Any
from collections.abc import Iterable, Mapping, Callable
import io
import mmap
import logging

View file

@ -14,7 +14,8 @@ Note that OASIS references follow the same convention as `masque`,
Notes:
* Gzip modification time is set to 0 (start of current epoch, usually 1970-01-01)
"""
from typing import Any, Callable, Iterable, IO, Mapping, cast, Sequence
from typing import Any, IO, cast
from collections.abc import Sequence, Iterable, Mapping, Callable
import logging
import pathlib
import gzip

View file

@ -1,7 +1,7 @@
"""
SVG file format readers and writers
"""
from typing import Mapping
from collections.abc import Mapping
import warnings
import numpy

View file

@ -1,7 +1,8 @@
"""
Helper functions for file reading and writing
"""
from typing import IO, Iterator, Mapping
from typing import IO
from collections.abc import Iterator, Mapping
import re
import pathlib
import logging