MCPcopy Create free account
hub / github.com/ipython/ipython / extract_version

Function extract_version

IPython/testing/iptest.py:101–102  ·  view source on GitHub ↗
(mod)

Source from the content-addressed store, hash-verified

99# Check which dependencies are installed and greater than minimum version.
100#-----------------------------------------------------------------------------
101def extract_version(mod):
102 return mod.__version__
103
104def test_for(item, min_version=None, callback=extract_version):
105 """Test to see if item is importable, and optionally check against a minimum

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected