-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add new line to end of file when rendering #2
Conversation
Hey @PatrickOHara, if you're interested in merging your PR could you fix the conflicts with my fork? |
Hi @ben-hudson, its been a few years since I looked at this code and I'm not sure which branch is correct. Any ideas? p.s. I also made a fix on this PR which you might like to merge in: rhgrant10#19 |
return tuple(items) | ||
|
||
def unpack(self, container): | ||
return tuple(container) |
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.
I can't remember the reason why I included this class, but it has something to do with this PR: rhgrant10#19
I have no idea either, I can take a look at the merge conflicts and take my best guess. Do you remember what this PR was for? I have your other PR (the edge_list one) since I only forked recently |
@@ -238,7 +238,7 @@ class AdjacencyListField(TransformerField): | |||
def build_transformer(cls): | |||
return T.MapT(key=T.FuncT(func=int), | |||
value=T.ListT(value=T.FuncT(func=int)), | |||
sep="\n", | |||
sep=('-1', ' -1\n'), |
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.
I'm not sure what the implication is, but the conflict is on this line. I have
value=T.ListT(value=T.FuncT(func=int), terminal='-1'),
sep='\n',
and you have
value=T.ListT(value=T.FuncT(func=int)),
sep=('-1', ' -1\n'),
Subtle difference but I don't know what the implication is... I think I made the change so add a new line at the end of file when rendering
Closes rhgrant10#21