Skip to content

Commit

Permalink
prevent sharing context
Browse files Browse the repository at this point in the history
  • Loading branch information
artur.shiriev committed Oct 11, 2024
1 parent 69b3c0d commit 5a0e25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion that_depends/providers/context_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def __aenter__(self) -> ContextType:
return self._enter()

def _enter(self) -> ContextType:
self._context_token = _CONTAINER_CONTEXT.set(self._initial_context or {})
self._context_token = _CONTAINER_CONTEXT.set({**self._initial_context})
return _CONTAINER_CONTEXT.get()

def __exit__(
Expand Down

0 comments on commit 5a0e25f

Please sign in to comment.