From d7b965d26d377783ea81ad876291fd85c1c021c0 Mon Sep 17 00:00:00 2001 From: rus07tam Date: Sun, 26 Oct 2025 18:10:49 +0000 Subject: [PATCH] chore: update imports --- src/snakia/property/__init__.py | 3 ++- src/snakia/property/priv_property.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/snakia/property/__init__.py b/src/snakia/property/__init__.py index 91e4ec1..6af10c9 100644 --- a/src/snakia/property/__init__.py +++ b/src/snakia/property/__init__.py @@ -1,5 +1,5 @@ from .cell_property import CellProperty -from .classproperty import ClassProperty +from .classproperty import ClassProperty, classproperty from .hook_property import HookProperty from .initonly import Initonly, initonly from .priv_property import PrivProperty @@ -9,6 +9,7 @@ from .readonly import Readonly, readonly __all__ = [ "CellProperty", "ClassProperty", + "classproperty", "HookProperty", "Initonly", "initonly", diff --git a/src/snakia/property/priv_property.py b/src/snakia/property/priv_property.py index 4203503..2628ec9 100644 --- a/src/snakia/property/priv_property.py +++ b/src/snakia/property/priv_property.py @@ -15,7 +15,7 @@ class PrivProperty[T]: def __get__(self, instance: Any, owner: type | None = None, /) -> T: if self.__default_value: return getattr(instance, self.__name, self.__default_value) - return getattr(instance, self.__name) + return getattr(instance, self.__name) # type: ignore def __set__(self, instance: Any, value: T, /) -> None: setattr(instance, self.__name, value)