Release/v0.6.0 #12
2 changed files with 6 additions and 1 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue