| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ | |||
| 41 | 41 | ||
| 42 | 42 | _name = LazyReCompile(r'[a-zA-Z_]\w*$') | |
| 43 | 43 | ||
| 44 | - Argspec = namedtuple('Argspec', ['args', 'varargs', 'varkwargs', 'defaults', | ||
| 44 | + ArgSpec = namedtuple('ArgSpec', ['args', 'varargs', 'varkwargs', 'defaults', | ||
| 45 | 45 | 'kwonly', 'kwonly_defaults', 'annotations']) | |
| 46 | 46 | ||
| 47 | 47 | FuncProps = namedtuple('FuncProps', ['func', 'argspec', 'is_bound_method']) | |
@@ -191,7 +191,7 @@ def getpydocspec(f, func): | |||
| 191 | 191 | if not hasattr(f, '__name__') or s.groups()[0] != f.__name__: | |
| 192 | 192 | return None | |
| 193 | 193 | ||
| 194 | - argspec = Argspec(list(), None, None, list(), list(), dict(), None) | ||
| 194 | + argspec = ArgSpec(list(), None, None, list(), list(), dict(), None) | ||
| 195 | 195 | ||
| 196 | 196 | for arg in s.group(2).split(','): | |
| 197 | 197 | arg = arg.strip() | |
@@ -241,7 +241,7 @@ def getfuncprops(func, f): | |||
| 241 | 241 | fixlongargs(f, argspec) | |
| 242 | 242 | if len(argspec) == 4: | |
| 243 | 243 | argspec = argspec + [list(),dict(),None] | |
| 244 | - argspec = Argspec(*argspec) | ||
| 244 | + argspec = ArgSpec(*argspec) | ||
| 245 | 245 | fprops = FuncProps(func, argspec, is_bound_method) | |
| 246 | 246 | except (TypeError, KeyError): | |
| 247 | 247 | with AttrCleaner(f): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments