[LangChain] Update TYPE_CHECKING try/except in graph.py as python 3.10 is now minimum

XMLWordPrintableJSON

    • 🔵 Done
    • Python Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      ...

      langchain-mongodb's minimum python version is now 3.10. That means the following in langchain-mongodb.graphrag.graph is no longer required.

      if TYPE_CHECKING:
          try:
              from typing import TypeAlias  # type:ignore[attr-defined] # Python 3.10+
          except ImportError:
              from typing_extensions import TypeAlias  # Python 3.9 fallback
      

      Definition of done

      Update. Look for similar instances in other places.

            Assignee:
            Casey Clements
            Reporter:
            Casey Clements
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: