Update deprecated collections imports
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -12,4 +12,4 @@ README.html
|
|||||||
*multidata
|
*multidata
|
||||||
*multisave
|
*multisave
|
||||||
EnemizerCLI/
|
EnemizerCLI/
|
||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"""Bag class definitions."""
|
"""Bag class definitions."""
|
||||||
import heapq
|
import heapq
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
from collections import Set, MutableSet, Hashable
|
from collections.abc import Set, MutableSet, Hashable
|
||||||
|
|
||||||
from . import _compat
|
from . import _compat
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""Class definition for bijection."""
|
"""Class definition for bijection."""
|
||||||
|
|
||||||
from collections import MutableMapping, Mapping
|
from collections.abc import MutableMapping, Mapping
|
||||||
|
|
||||||
|
|
||||||
class bijection(MutableMapping):
|
class bijection(MutableMapping):
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
"""RangeMap class definition."""
|
"""RangeMap class definition."""
|
||||||
from bisect import bisect_left, bisect_right
|
from bisect import bisect_left, bisect_right
|
||||||
from collections import namedtuple, Mapping, MappingView, Set
|
from collections import namedtuple
|
||||||
|
from collections.abc import Mapping, MappingView, Set
|
||||||
|
|
||||||
|
|
||||||
# Used to mark unmapped ranges
|
# Used to mark unmapped ranges
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"""Setlist class definitions."""
|
"""Setlist class definitions."""
|
||||||
import random as random_
|
import random as random_
|
||||||
|
|
||||||
from collections import (
|
from collections.abc import (
|
||||||
Sequence,
|
Sequence,
|
||||||
Set,
|
Set,
|
||||||
MutableSequence,
|
MutableSequence,
|
||||||
|
|||||||
Reference in New Issue
Block a user