make exc kwonly

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

View File

@ -252,6 +252,7 @@ def importorskip(
modname: str,
minversion: Optional[str] = None,
reason: Optional[str] = None,
*,
exc: Type[ImportError] = ImportError,
) -> Any:
"""Import and return the requested module ``modname``, or skip the