MCPcopy
hub / github.com/langroid/langroid / pydantic_major_version

Function pydantic_major_version

langroid/utils/system.py:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def pydantic_major_version() -> int:
26 try:
27 pydantic_version = importlib.metadata.version("pydantic")
28 major_version = int(pydantic_version.split(".")[0])
29 return major_version
30 except importlib.metadata.PackageNotFoundError:
31 return -1
32
33
34class LazyLoad:

Callers

nothing calls this directly

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…