Skip to content

Commit 5b5dc4b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9cd9104 commit 5b5dc4b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_inference.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
AstroidTypeError,
3939
AttributeInferenceError,
4040
InferenceError,
41-
NotFoundError, NoDefault,
41+
NoDefault,
42+
NotFoundError,
4243
)
4344
from astroid.objects import ExceptionInstance
4445

@@ -147,11 +148,13 @@ def meth3(self, d=attr):
147148
ast = parse(CODE, __name__)
148149

149150
def test_arg_keyword_no_default_value(self):
150-
node = extract_node("""
151+
node = extract_node(
152+
"""
151153
class Sensor:
152154
def __init__(self, *, description): #@
153155
self._id = description.key
154-
""")
156+
"""
157+
)
155158
with self.assertRaises(NoDefault):
156159
node.args.default_value("description")
157160

0 commit comments

Comments
 (0)