Core: Fix up python 3.10 support

Fixes #589
This commit is contained in:
Mike Auty
2021-11-17 13:41:09 +00:00
parent 23453f5d8c
commit 3cb2bf9fac
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#
import collections
import collections.abc
import logging
import struct
from typing import Any, ClassVar, Dict, List, Iterable, Optional, Tuple, Type, Union as TUnion, overload
@@ -633,7 +634,7 @@ class Array(interfaces.objects.ObjectInterface, collections.abc.Sequence):
return self.vol.count
def write(self, value) -> None:
if not isinstance(value, collections.Sequence):
if not isinstance(value, collections.abc.Sequence):
raise TypeError("Only Sequences can be written to arrays")
self.count = len(value)
for index in range(len(value)):