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

Update typedcols.py

parent c9b67e69
No related branches found
No related tags found
1 merge request!5Import from collections.abc
Pipeline #1782 passed
......@@ -13,7 +13,8 @@ type definition.
__version__ = '0.1.13'
__author__ = 'Pavel Kácha <pavel.kacha@cesnet.cz>'
import collections
from collections.abc import MutableMapping
from collections.abc import MutableSequence
import abc
......@@ -61,7 +62,7 @@ class TypedDictMetaclass(abc.ABCMeta):
dictify_typedef(cls.typedef)
class TypedDict(collections.abc.MutableMapping):
class TypedDict(MutableMapping):
""" Dictionary type abstract class, which supports checking of inserted
types, based on simple type definition.
......@@ -222,7 +223,7 @@ class TypedDict(collections.abc.MutableMapping):
TypedDict = TypedDictMetaclass("TypedDict", (TypedDict,), {})
class TypedList(collections.abc.MutableSequence):
class TypedList(MutableSequence):
""" List type abstract class, which supports checking of inserted items
type.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment