Alex

Results 8 issues of Alex

```python def dep_func() -> int: return 1 @inject def some_func(a: int = Depends(dep_func)) -> int: return a print(some_func(a=2)) # 2 print(some_func(2)) # 2 ```

Currently, `container_context()` resets/reinitializes the whole context. This makes it hard to manage resources with different lifetimes. As a theoretical workaround, it is possible to build an `initial_context` that keeps resources...

enhancement

We should enable support for python 3.13. To-do: - Make sure that all tests pass with 3.13. - Update `pyproject.toml` - Update `docs` - Update `workflows`

documentation
enhancement

Common difficulty which currently requires some kind of "work-around" ```python @app.get("/") async def endpont(r: Request, value = fastapi.Depends(Container.provider)): ... ``` Where the provider is actually a dependent of the `Request`...

enhancement
v3

## Describe the bug When using the `oauth_router`, the `state` jwt token has an expiration time. When the callback tries to call the `callback` endpoint with an expired state token,...

bug

Right now, all `Context` providers use `ContextVars` as storage. It would be good to have an alternative, for example, if someone needs more reliable persistence when working with asyncio. To-do:...

enhancement
v4

Some providers naming can be improved to make their intent more clear: Current suggestions: - `State` --> `ContextState`

documentation
v4

Currently, `None` is the default value in most places where an argument can be omitted. In such cases, `None` just means the value has been left unset. It would be...

v4