8
8
9
9
from collections import namedtuple
10
10
11
- PositionalError = namedtuple ('PositionalError' ,
12
- ('error' , 'name' , 'index' , 'value' , 'func_name' , 'func' ))
11
+ PositionalError = namedtuple ('PositionalError' , (
12
+ 'error' , 'name' , 'index' , 'value' , 'func_name' , 'func' )
13
+ )
13
14
14
- KeywordError = namedtuple ('KeywordError' ,
15
- ('error' , 'name' , 'value' , 'default_value' , 'func_name' , 'func' ))
15
+ KeywordError = namedtuple ('KeywordError' , (
16
+ 'error' , 'name' , 'value' , 'default_value' , 'func_name' , 'func' )
17
+ )
16
18
17
- NotAnalysedError = namedtuple ('NotAnalysedError' ,
18
- ('error' , 'name' , 'argspec' , 'callargs' ))
19
+ NotAnalysedError = namedtuple ('NotAnalysedError' , (
20
+ 'error' , 'name' , 'argspec' , 'callargs' )
21
+ )
19
22
20
- Signature = namedtuple ('Signature' ,
21
- ('args' , 'vaargs' , 'kwargs' , 'keywords' ))
23
+ Signature = namedtuple (
24
+ 'Signature' , ('args' , 'vaargs' , 'kwargs' , 'keywords' )
25
+ )
22
26
"""
23
27
A Signature representing a parsed argspec for a function:
24
28
@@ -54,6 +58,7 @@ class ArgsNotAnalysedError(Exception):
54
58
"""
55
59
One or more arguments were not analysed (when `strict=True`).
56
60
"""
61
+
57
62
def __init__ (self , names ):
58
63
"""
59
64
:param List[str] names:
@@ -69,6 +74,7 @@ class NoDefaultError(Exception):
69
74
"""
70
75
No default value is provided for this argument.
71
76
"""
77
+
72
78
def __init__ (self , name , argspec ):
73
79
"""
74
80
0 commit comments