diff --git a/typedcols.py b/typedcols.py index 30ebccd3b2cff8612e23c90700f37433613a98f0..2cc8e438d29a81a7d35234dc593451d0414238cc 100644 --- a/typedcols.py +++ b/typedcols.py @@ -61,7 +61,7 @@ class TypedDictMetaclass(abc.ABCMeta): dictify_typedef(cls.typedef) -class TypedDict(collections.MutableMapping): +class TypedDict(collections.abc.MutableMapping): """ Dictionary type abstract class, which supports checking of inserted types, based on simple type definition. @@ -222,7 +222,7 @@ class TypedDict(collections.MutableMapping): TypedDict = TypedDictMetaclass("TypedDict", (TypedDict,), {}) -class TypedList(collections.MutableSequence): +class TypedList(collections.abc.MutableSequence): """ List type abstract class, which supports checking of inserted items type.