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