Skip to content
Snippets Groups Projects
Commit 9dbab523 authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Use MutableSequence and MutableMapping from collections.abc. (Fixes: #2)

parent 844336ea
No related branches found
No related tags found
1 merge request!5Import from collections.abc
Pipeline #1780 failed
...@@ -61,7 +61,7 @@ class TypedDictMetaclass(abc.ABCMeta): ...@@ -61,7 +61,7 @@ class TypedDictMetaclass(abc.ABCMeta):
dictify_typedef(cls.typedef) dictify_typedef(cls.typedef)
class TypedDict(collections.MutableMapping): class TypedDict(collections.abc.MutableMapping):
""" Dictionary type abstract class, which supports checking of inserted """ Dictionary type abstract class, which supports checking of inserted
types, based on simple type definition. types, based on simple type definition.
...@@ -222,7 +222,7 @@ class TypedDict(collections.MutableMapping): ...@@ -222,7 +222,7 @@ class TypedDict(collections.MutableMapping):
TypedDict = TypedDictMetaclass("TypedDict", (TypedDict,), {}) TypedDict = TypedDictMetaclass("TypedDict", (TypedDict,), {})
class TypedList(collections.MutableSequence): class TypedList(collections.abc.MutableSequence):
""" List type abstract class, which supports checking of inserted items """ List type abstract class, which supports checking of inserted items
type. type.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment