Skip to content

Commit

Permalink
style: format code with Black and isort (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
deepsource-autofix[bot] committed Oct 11, 2023
1 parent 2f2c983 commit b65141e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/interpreted/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class ImportFrom(Statement):
class Module:
body: list[Statement]


@dataclass
class Decorator(Node):
value: Expression
8 changes: 4 additions & 4 deletions tests/interpreted_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def xyz():
print('inside xyz')
xyz()
""",
""",
"inside decorator\ninside xyz\n",
),
),
(
"""\
def decorator_foo(func):
Expand All @@ -125,7 +125,7 @@ def xyz():
print('Inside xyz')
xyz()
""",
""",
"Inside decorator bar\nInside decorator foo\nInside xyz\n",
),
(
Expand All @@ -147,7 +147,7 @@ def xyz():
print('Inside xyz')
xyz()
""",
""",
"Inside decorator bar\nInside decorator foo\nInside wrapper\nInside xyz\n",
),
),
Expand Down

0 comments on commit b65141e

Please sign in to comment.