Release/v0.6.0 #12

Merged
rus07tam merged 13 commits from release/v0.6.0 into main 2025-11-26 17:17:42 +03:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit 2cc15bf250 - Show all commits

View file

@ -1,7 +1,7 @@
from .attrs import get_attrs, get_or_set_attr from .attrs import get_attrs, get_or_set_attr
from .funcs import call, caller, side, side_func
from .exceptions import catch, throw from .exceptions import catch, throw
from .frames import frame from .frames import frame
from .funcs import call, caller, ret, side, side_func
from .gil import GIL_ENABLED, nolock from .gil import GIL_ENABLED, nolock
from .inherit import inherit from .inherit import inherit
from .this import this from .this import this
@ -16,6 +16,7 @@ __all__ = [
"frame", "frame",
"inherit", "inherit",
"nolock", "nolock",
"ret",
"side", "side",
"side_func", "side_func",
"this", "this",

View file

@ -18,3 +18,7 @@ def side(value: T, *_: Any, **__: Any) -> T:
def side_func(value: T, *_: Any, **__: Any) -> Callable[..., T]: def side_func(value: T, *_: Any, **__: Any) -> Callable[..., T]:
return lambda *_, **__: value return lambda *_, **__: value
def ret() -> Callable[[T], T]:
return lambda x: x