Coverage for /usr/lib/python3/dist-packages/sympy/external/__init__.py: 100%

2 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-14 15:55 +0200

1""" 

2Unified place for determining if external dependencies are installed or not. 

3 

4You should import all external modules using the import_module() function. 

5 

6For example 

7 

8>>> from sympy.external import import_module 

9>>> numpy = import_module('numpy') 

10 

11If the resulting library is not installed, or if the installed version 

12is less than a given minimum version, the function will return None. 

13Otherwise, it will return the library. See the docstring of 

14import_module() for more information. 

15 

16""" 

17 

18from sympy.external.importtools import import_module 

19 

20__all__ = ['import_module']