0.11.0 wrap SQLAlchemy() sessions by default, add Lawyer(), SpitText(), cb32lencode(), more Snowflake.from_*(), docstring changes
This commit is contained in:
parent
855299c6d5
commit
0460062867
21 changed files with 220 additions and 91 deletions
|
|
@ -87,7 +87,7 @@ def future(message: str | None = None, *, version: str = None):
|
|||
|
||||
version= is the intended version release.
|
||||
|
||||
NEW 0.7.0
|
||||
*New in 0.7.0*
|
||||
"""
|
||||
def decorator(func: Callable[_T, _U]) -> Callable[_T, _U]:
|
||||
@wraps(func)
|
||||
|
|
@ -135,7 +135,7 @@ def _make_alru_cache(_CacheInfo):
|
|||
|
||||
PSA there is no C speed up. Unlike PSL. Sorry.
|
||||
|
||||
NEW 0.5.0
|
||||
*New in 0.5.0*
|
||||
"""
|
||||
|
||||
# Users should only access the lru_cache through its public API:
|
||||
|
|
@ -292,7 +292,7 @@ def timed_cache(ttl: int, maxsize: int = 128, typed: bool = False, *, async_: bo
|
|||
|
||||
Supports coroutines with async_=True.
|
||||
|
||||
NEW 0.5.0
|
||||
*New in 0.5.0*
|
||||
"""
|
||||
def decorator(func: Callable[_T, _U]) -> Callable[_T, _U]:
|
||||
start_time = None
|
||||
|
|
@ -330,7 +330,7 @@ def none_pass(func: Callable[_T, _U], *args, **kwargs) -> Callable[_T, _U]:
|
|||
|
||||
Shorthand for func(x) if x is not None else None
|
||||
|
||||
NEW 0.5.0
|
||||
*New in 0.5.0*
|
||||
"""
|
||||
@wraps(func)
|
||||
def wrapper(x):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue