Skip to content

Commit

Permalink
todos removed & dict returned to ordered dict
Browse files Browse the repository at this point in the history
  • Loading branch information
matveyvarg committed Apr 16, 2024
1 parent 3c1fcc1 commit afd511d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions deker/ABC/base_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion deker/ABC/base_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

"""Abstract interfaces for locks."""
# TODO: MOVED
from abc import ABC, abstractmethod
from functools import wraps
from pathlib import Path
Expand Down
3 changes: 0 additions & 3 deletions deker/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from typing import List


# TODO: MOVED
class DekerBaseApplicationError(Exception):
"""Base attribute exception."""

Expand Down Expand Up @@ -85,7 +84,6 @@ class DekerIntegrityError(DekerBaseApplicationError):
pass


# TODO: MOVED
class DekerLockError(DekerBaseApplicationError):
"""If a Collection or a Array or VArray instance is locked."""

Expand Down Expand Up @@ -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."""
1 change: 0 additions & 1 deletion deker/tools/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions deker/types/private/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class DimensionType(str, Enum):
time = "time"


# TODO: MOVED
class LocksExtensions(str, Enum):
"""Extensions for lock files."""

Expand All @@ -98,7 +97,6 @@ class LocksExtensions(str, Enum):
varray_lock = ".varraylock"


# TODO: MOVED
class LocksTypes(str, Enum):
"""Locks enum."""

Expand Down

0 comments on commit afd511d

Please sign in to comment.