aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/ipython/py2/IPython/utils/_signatures.py
diff options
context:
space:
mode:
authorsmosker <smosker@yandex-team.ru>2022-02-10 16:48:22 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:22 +0300
commit01fa2667d0e5e868b18424bc1906146e5ee340db (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /contrib/python/ipython/py2/IPython/utils/_signatures.py
parentdd14d17a747a9c259858faf2fcc3ea6b92df4e15 (diff)
downloadydb-01fa2667d0e5e868b18424bc1906146e5ee340db.tar.gz
Restoring authorship annotation for <smosker@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/ipython/py2/IPython/utils/_signatures.py')
-rw-r--r--contrib/python/ipython/py2/IPython/utils/_signatures.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/python/ipython/py2/IPython/utils/_signatures.py b/contrib/python/ipython/py2/IPython/utils/_signatures.py
index 9ffab265db..20f52b98ed 100644
--- a/contrib/python/ipython/py2/IPython/utils/_signatures.py
+++ b/contrib/python/ipython/py2/IPython/utils/_signatures.py
@@ -21,7 +21,7 @@ import itertools
import functools
import re
import types
-import inspect
+import inspect
# patch for single-file
@@ -72,7 +72,7 @@ def signature(obj):
if not callable(obj):
raise TypeError('{0!r} is not a callable object'.format(obj))
- if inspect.ismethod(obj):
+ if inspect.ismethod(obj):
if obj.__self__ is None:
# Unbound method - treat it as a function (no distinction in Py 3)
obj = obj.__func__
@@ -97,7 +97,7 @@ def signature(obj):
else:
return signature(wrapped)
- if inspect.isfunction(obj):
+ if inspect.isfunction(obj):
return Signature.from_function(obj)
if isinstance(obj, functools.partial):
@@ -512,7 +512,7 @@ class Signature(object):
def from_function(cls, func):
'''Constructs Signature for the given python function'''
- if not inspect.isfunction(func):
+ if not inspect.isfunction(func):
raise TypeError('{0!r} is not a Python function'.format(func))
Parameter = cls._parameter_cls