Skip to content

Commit 5411570

Browse files
committed
fix: type declaration must match later asignment
1 parent 66118c1 commit 5411570

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/osw/controller/database.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DatabaseController(model.Database):
1717

1818
osw: Optional[OSW]
1919
""" an OSW instance to fetch related resources (host, server, etc.)"""
20-
cm: Optional[CredentialManager]
20+
cm: Optional[Union[CredentialManager.BaseCredential, CredentialManager]]
2121
""" CredentialManager to login to the database"""
2222
engine: Optional[Engine]
2323
""" the internal sqlalchemy engine """

0 commit comments

Comments
 (0)