Skip to content

Commit 9ddcfd8

Browse files
committed
Created and linked TypeAlias 3.9 fallback to new ticket.
1 parent 95040db commit 9ddcfd8

File tree

1 file changed

+2
-2
lines changed
  • libs/langchain-mongodb/langchain_mongodb/graphrag

1 file changed

+2
-2
lines changed

libs/langchain-mongodb/langchain_mongodb/graphrag/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
if TYPE_CHECKING:
2424
try:
2525
from typing import TypeAlias # type:ignore[attr-defined] # Python 3.10+
26-
except ImportError:
27-
from typing_extensions import TypeAlias # Python 3.9 fallback
26+
except ImportError: # Python 3.9 fallback # TODO Remove [PYTHON-5658]
27+
from typing_extensions import TypeAlias
2828

2929
Entity: TypeAlias = Dict[str, Any]
3030
"""Represents an Entity in the knowledge graph with specific schema. See .schema"""

0 commit comments

Comments
 (0)