From 9dbab523fb1c364565c6ca3fe09b10f56ee7ee78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rajmund=20Hru=C5=A1ka?= <rajmund.hruska@cesnet.cz> Date: Tue, 21 Jun 2022 09:26:20 +0000 Subject: [PATCH] Use MutableSequence and MutableMapping from collections.abc. (Fixes: #2) --- typedcols.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typedcols.py b/typedcols.py index 30ebccd..2cc8e43 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. -- GitLab