import Sequence et al from collections.abc not typing
This commit is contained in:
parent
b1d78b9acb
commit
6ec94fb3c3
28 changed files with 45 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
SVG file format readers and writers
|
||||
"""
|
||||
from typing import Mapping
|
||||
from collections.abc import Mapping
|
||||
import warnings
|
||||
|
||||
import numpy
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue