##// END OF EJS Templates
Merge pull request #11295 from meeseeksmachine/auto-backport-of-pr-10974-on-5.x...
Merge pull request #11295 from meeseeksmachine/auto-backport-of-pr-10974-on-5.x Backport PR #10974 on branch 5.x (IPython breaks import matplotlib.pyplot when there is no display)

File last commit:

r21663:e3427ad0
r24552:2b56bcb6 merge
Show More
signatures.py
11 lines | 332 B | text/x-python | PythonLexer
Thomas Kluyver
Cross link signatures docstrings
r15600 """Function signature objects for callables.
Thomas Kluyver
Get widgets from function annotations and default arguments....
r15137
Antony Lee
Use stdlib inspect.signature if available....
r21663 Use the standard library version if available, as it is more up to date.
Fallback on backport otherwise.
Thomas Kluyver
Get widgets from function annotations and default arguments....
r15137 """
Matthias Bussonnier
make sentinel class for some kwargs....
r21045
Antony Lee
Use stdlib inspect.signature if available....
r21663 try:
from inspect import BoundArguments, Parameter, Signature, signature
except ImportError:
from ._signatures import BoundArguments, Parameter, Signature, signature