Release/v0.5.0 #8

Merged
rus07tam merged 20 commits from release/v0.5.0 into main 2025-11-24 16:28:03 +03:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit c879b22f43 - Show all commits

View file

@ -2,6 +2,7 @@ from .attr import get_attrs, get_or_set_attr
from .frame import frame
from .inherit import inherit
from .nolock import nolock
from .side import side, side_func
from .this import this
from .throw import throw
from .to_async import to_async
@ -12,6 +13,8 @@ __all__ = [
"frame",
"inherit",
"nolock",
"side",
"side_func",
"this",
"throw",
"to_async",

11
src/snakia/utils/side.py Normal file
View file

@ -0,0 +1,11 @@
from typing import Any, Callable, TypeVar
T = TypeVar("T")
def side(value: T, *_: Any, **__: Any) -> T:
return value
def side_func(value: T, *_: Any, **__: Any) -> Callable[..., T]:
return lambda *_, **__: value