We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cd9104 commit 5b5dc4bCopy full SHA for 5b5dc4b
tests/test_inference.py
@@ -38,7 +38,8 @@
38
AstroidTypeError,
39
AttributeInferenceError,
40
InferenceError,
41
- NotFoundError, NoDefault,
+ NoDefault,
42
+ NotFoundError,
43
)
44
from astroid.objects import ExceptionInstance
45
@@ -147,11 +148,13 @@ def meth3(self, d=attr):
147
148
ast = parse(CODE, __name__)
149
150
def test_arg_keyword_no_default_value(self):
- node = extract_node("""
151
+ node = extract_node(
152
+ """
153
class Sensor:
154
def __init__(self, *, description): #@
155
self._id = description.key
- """)
156
157
+ )
158
with self.assertRaises(NoDefault):
159
node.args.default_value("description")
160
0 commit comments