Skip to content

Commit

Permalink
collections -> collections.abc
Browse files Browse the repository at this point in the history
Starting Python 3.10 AttrDict does no longer work due to the
collections imports.
  • Loading branch information
pirofti committed Apr 1, 2022
1 parent 8c18831 commit f6678b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion attrdict/default.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
A subclass of MutableAttr that has defaultdict support.
"""
from collections import Mapping
from collections.abc import Mapping

import six

Expand Down
2 changes: 1 addition & 1 deletion attrdict/mapping.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
An implementation of MutableAttr.
"""
from collections import Mapping
from collections.abc import Mapping

import six

Expand Down
2 changes: 1 addition & 1 deletion attrdict/merge.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
A right-favoring Mapping merge.
"""
from collections import Mapping
from collections.abc import Mapping


__all__ = ['merge']
Expand Down
2 changes: 1 addition & 1 deletion attrdict/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Mixin Classes for Attr-support.
"""
from abc import ABCMeta, abstractmethod
from collections import Mapping, MutableMapping, Sequence
from collections.abc import Mapping, MutableMapping, Sequence
import re

import six
Expand Down

0 comments on commit f6678b6

Please sign in to comment.