Update deprecated collections imports

This commit is contained in:
cassidoxa
2023-06-14 16:42:51 -04:00
parent c4e6fbb8cd
commit 07e8577907
5 changed files with 6 additions and 5 deletions

2
.gitignore vendored
View File

@@ -12,4 +12,4 @@ README.html
*multidata
*multisave
EnemizerCLI/
.mypy_cache/
.mypy_cache/

View File

@@ -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

View File

@@ -1,6 +1,6 @@
"""Class definition for bijection."""
from collections import MutableMapping, Mapping
from collections.abc import MutableMapping, Mapping
class bijection(MutableMapping):

View File

@@ -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

View File

@@ -1,7 +1,7 @@
"""Setlist class definitions."""
import random as random_
from collections import (
from collections.abc import (
Sequence,
Set,
MutableSequence,