From 781891dab6538c8f21dacfabee652d93c929478c Mon Sep 17 00:00:00 2001 From: Pouria Khalaj Date: Fri, 31 May 2024 11:47:55 +0200 Subject: [PATCH] Remove `@validate_call` from `MongoDB.initialize` --- trolldb/database/mongodb.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/trolldb/database/mongodb.py b/trolldb/database/mongodb.py index 4221aee..4f8f3bc 100644 --- a/trolldb/database/mongodb.py +++ b/trolldb/database/mongodb.py @@ -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! @@ -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):