From afd511d542095078f29d5c6edcc38151db78d745 Mon Sep 17 00:00:00 2001 From: matveyvarg Date: Tue, 16 Apr 2024 11:42:37 +0200 Subject: [PATCH] todos removed & dict returned to ordered dict --- deker/ABC/base_array.py | 4 ++-- deker/ABC/base_locks.py | 1 - deker/errors.py | 3 --- deker/tools/path.py | 1 - deker/types/private/enums.py | 2 -- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/deker/ABC/base_array.py b/deker/ABC/base_array.py index e73366c..d395cdd 100644 --- a/deker/ABC/base_array.py +++ b/deker/ABC/base_array.py @@ -462,8 +462,8 @@ def _create_from_meta( try: # To ensure the order of attributes - primary_attributes: OrderedDict = OrderedDict() - custom_attributes: OrderedDict = OrderedDict() + primary_attributes: dict = dict() + custom_attributes: dict = dict() # Iterate over every attribute in schema: for attr_schema in attrs_schema: diff --git a/deker/ABC/base_locks.py b/deker/ABC/base_locks.py index cc2ea60..2d90782 100644 --- a/deker/ABC/base_locks.py +++ b/deker/ABC/base_locks.py @@ -15,7 +15,6 @@ # along with this program. If not, see . """Abstract interfaces for locks.""" -# TODO: MOVED from abc import ABC, abstractmethod from functools import wraps from pathlib import Path diff --git a/deker/errors.py b/deker/errors.py index 8991fd5..2b169aa 100644 --- a/deker/errors.py +++ b/deker/errors.py @@ -16,7 +16,6 @@ from typing import List -# TODO: MOVED class DekerBaseApplicationError(Exception): """Base attribute exception.""" @@ -85,7 +84,6 @@ class DekerIntegrityError(DekerBaseApplicationError): pass -# TODO: MOVED class DekerLockError(DekerBaseApplicationError): """If a Collection or a Array or VArray instance is locked.""" @@ -144,6 +142,5 @@ def __str__(self) -> str: return f"{self.message}; exceptions:\n\n{joined} " -# TODO: MOVED class DekerMemoryError(DekerBaseApplicationError, MemoryError): """Early memory overflow exception.""" diff --git a/deker/tools/path.py b/deker/tools/path.py index 8deac53..58ad76d 100644 --- a/deker/tools/path.py +++ b/deker/tools/path.py @@ -54,7 +54,6 @@ def get_symlink_path( return symlink_path -# TODO: MOVED def get_main_path(array_id: str, data_directory: Path) -> Path: """Generate main path for the given array id by its type. diff --git a/deker/types/private/enums.py b/deker/types/private/enums.py index 14d3acb..882f6ed 100644 --- a/deker/types/private/enums.py +++ b/deker/types/private/enums.py @@ -88,7 +88,6 @@ class DimensionType(str, Enum): time = "time" -# TODO: MOVED class LocksExtensions(str, Enum): """Extensions for lock files.""" @@ -98,7 +97,6 @@ class LocksExtensions(str, Enum): varray_lock = ".varraylock" -# TODO: MOVED class LocksTypes(str, Enum): """Locks enum."""