doc exc param to importorskip

This commit is contained in:
Thomas Grainger 2023-10-19 18:25:56 +01:00
parent 6e40458fc1
commit ff12e083c5
No known key found for this signature in database
GPG Key ID: DDA48B5C47FBC8C8
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ def importorskip(
:param reason:
If given, this reason is shown as the message when the module cannot
be imported.
:param exc:
Either ImportError or ModuleNotFoundError, the exception to catch
when importing.
:returns:
The imported module. This should be assigned to its canonical name.