Skip to content

Commit 85a2a5d

Browse files
committed
Changed case for Argspec named tuple definition to ArgSpec
1 parent 27b788c commit 85a2a5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bpython/inspection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
_name = LazyReCompile(r'[a-zA-Z_]\w*$')
4343

44-
Argspec = namedtuple('Argspec', ['args', 'varargs', 'varkwargs', 'defaults',
44+
ArgSpec = namedtuple('ArgSpec', ['args', 'varargs', 'varkwargs', 'defaults',
4545
'kwonly', 'kwonly_defaults', 'annotations'])
4646

4747
FuncProps = namedtuple('FuncProps', ['func', 'argspec', 'is_bound_method'])
@@ -191,7 +191,7 @@ def getpydocspec(f, func):
191191
if not hasattr(f, '__name__') or s.groups()[0] != f.__name__:
192192
return None
193193

194-
argspec = Argspec(list(), None, None, list(), list(), dict(), None)
194+
argspec = ArgSpec(list(), None, None, list(), list(), dict(), None)
195195

196196
for arg in s.group(2).split(','):
197197
arg = arg.strip()
@@ -241,7 +241,7 @@ def getfuncprops(func, f):
241241
fixlongargs(f, argspec)
242242
if len(argspec) == 4:
243243
argspec = argspec + [list(),dict(),None]
244-
argspec = Argspec(*argspec)
244+
argspec = ArgSpec(*argspec)
245245
fprops = FuncProps(func, argspec, is_bound_method)
246246
except (TypeError, KeyError):
247247
with AttrCleaner(f):

0 commit comments

Comments
 (0)