agno 2.2.2__py3-none-any.whl → 2.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
agno/db/mongo/__init__.py CHANGED
@@ -1,3 +1,17 @@
1
+ from typing import TYPE_CHECKING
2
+
1
3
  from agno.db.mongo.mongo import MongoDb
2
4
 
3
- __all__ = ["MongoDb"]
5
+ if TYPE_CHECKING:
6
+ from agno.db.mongo.async_mongo import AsyncMongoDb
7
+
8
+ __all__ = ["AsyncMongoDb", "MongoDb"]
9
+
10
+
11
+ def __getattr__(name: str):
12
+ """Lazy import AsyncMongoDb only when accessed."""
13
+ if name == "AsyncMongoDb":
14
+ from agno.db.mongo.async_mongo import AsyncMongoDb
15
+
16
+ return AsyncMongoDb
17
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")