-
Notifications
You must be signed in to change notification settings - Fork 920
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix for multi-lines imports
%load_node
(#4068)
* add new test case - failed as expected Signed-off-by: Nok <[email protected]> * add notes Signed-off-by: Nok <[email protected]> * Add a fix for multi-lines imports Signed-off-by: Nok Lam Chan <[email protected]> * fix Signed-off-by: Nok Lam Chan <[email protected]> * fix linter Signed-off-by: Nok Lam Chan <[email protected]> * fix lint Signed-off-by: Nok <[email protected]> --------- Signed-off-by: Nok <[email protected]> Signed-off-by: Nok Lam Chan <[email protected]>
- Loading branch information
Showing
5 changed files
with
62 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ruff: noqa | ||
# multi-lines import | ||
from logging import ( | ||
INFO, | ||
DEBUG, | ||
WARN, | ||
ERROR, | ||
) | ||
|
||
|
||
def dummy_multiline_import_function(dummy_input, my_input): | ||
""" | ||
Returns True if input is not | ||
""" | ||
# this is an in-line comment in the body of the function | ||
random_assignment = "Added for a longer function" | ||
random_assignment += "make sure to modify variable" | ||
return not dummy_input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters