Skip to content

Commit 9250853

Browse files
committed
Don't use class var for _repositories
1 parent 56ab5fd commit 9250853

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sqlalchemy_bind_manager/_unit_of_work/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242

4343
class BaseUnitOfWork(Generic[REPOSITORY, SESSION_HANDLER], ABC):
4444
_session_handler: SESSION_HANDLER
45-
_repositories: Dict[str, REPOSITORY] = {}
45+
_repositories: Dict[str, REPOSITORY]
46+
47+
def __init__(self):
48+
self._repositories = {}
4649

4750
def register_repository(
4851
self,

0 commit comments

Comments
 (0)