Skip to content

Commit

Permalink
Remove @validate_call from MongoDB.initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhalaj committed May 31, 2024
1 parent c42f8cc commit 781891d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions trolldb/database/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ class MongoDB:
"""MongoDB creates these databases by default for self usage."""

@classmethod
@validate_call
async def initialize(cls, database_config: DatabaseConfig):
"""Initializes the motor client. Note that this method has to be awaited!
Expand All @@ -122,9 +121,6 @@ async def initialize(cls, database_config: DatabaseConfig):
On success ``None``.
Raises:
ValidationError:
If the method is not called with arguments of valid type.
SystemExit(errno.EIO):
If connection is not established, i.e. ``ConnectionFailure``.
SystemExit(errno.EIO):
Expand Down

0 comments on commit 781891d

Please sign in to comment.