Improve Python 3.9 compatibility

Blist has been unmaintained for 5+ years and is now broken on Python 3.9.
This commit is contained in:
travankor
2020-10-16 14:30:16 -07:00
committed by miruka
parent 7564b40c3e
commit 1dcd6daaba
3 changed files with 1 additions and 13 deletions

View File

@@ -9,8 +9,6 @@ from typing import (
TYPE_CHECKING, Any, Dict, Iterator, List, MutableMapping, Optional, Tuple,
)
from blist import blist
from ..pyotherside_events import ModelCleared, ModelItemDeleted, ModelItemSet
from . import SyncId
@@ -41,7 +39,7 @@ class Model(MutableMapping):
self.sync_id: Optional[SyncId] = sync_id
self.write_lock: RLock = RLock()
self._data: Dict[Any, "ModelItem"] = {}
self._sorted_data: List["ModelItem"] = blist()
self._sorted_data: List["ModelItem"] = []
self.take_items_ownership: bool = True