-
-
Notifications
You must be signed in to change notification settings - Fork 301
Make Module
call the __init__
of NodeNG
#1262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I guess I know why now: it will set Problem for the future! Sorry for pinging! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why we don't do this?
Unfortunately not.
Without this
col_offset
isn't defined onnodes.Module
.
Haven't though about this tbh, but you're right. It should be defined even if None
. That's what all other nodes without lineno
and col_offset
do too: 40d5560
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, do you want another review @DanielNoord ?
Let's wait for @cdce8p. He reported the initial issue that prompted this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small comments, looks good otherwise.
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
This reverts commit dddf2da.
Steps
Description
Found this while working on the
end_col_offset
issues.@cdce8p Do you know why we don't do this? Without this
col_offset
isn't defined onnodes.Module
. We could also define it in the__init__
ofnodes.Module
, but this seem elegant as well?Type of Changes
Related Issue
Closes #1273