Skip to content

Commit

Permalink
add slots to container context
Browse files Browse the repository at this point in the history
  • Loading branch information
artur.shiriev committed Sep 29, 2024
1 parent 47ecbb8 commit 18e16fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions that_depends/providers/context_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class container_context( # noqa: N801
When used as sync-context-manager, it will only allow setup & teardown of sync resources.
"""

__slots__ = "_initial_context", "_context_token"

def __init__(self, initial_context: ContextType | None = None) -> None:
self._initial_context: ContextType = initial_context or {}
self._context_token: Token[ContextType] | None = None
Expand Down

0 comments on commit 18e16fb

Please sign in to comment.