Skip to content
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

Changed arguments list of GraphMLWriterLxml.dump() #6261

Merged
merged 1 commit into from Nov 11, 2023

Conversation

patrick-nicodemus
Copy link
Contributor

@patrick-nicodemus patrick-nicodemus commented Dec 7, 2022

Changed arguments list of GraphMLWriterLxml.dump to be consistent with the type of GraphMLWriter.dump. Otherwise, if we have some GraphMLWriterLxml A, and some user calls A.dump(stream) (maybe in the context of a function which takes a GraphMLWriter) then it will throw an error.
This also makes static analysis tools happier, which reduces the amount of things to look at when debugging.

Changed arguments list of GraphMLWriterLxml.dump to be consistent with the type of GraphMLWriter.dump.
(Otherwise, if we have some GraphMLWriterLxml A, and some user calls A.dump(stream) (maybe in the context of a function which takes a GraphMLWriter) then it will call the method of the parent class rather than that of the child class.)
This also makes static analysis tools happier, which reduces the amount of things to look at when debugging.
Copy link
Contributor

@rossbar rossbar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rossbar rossbar merged commit 6b0385d into networkx:main Nov 11, 2023
1 check passed
@jarrodmillman jarrodmillman added this to the 3.3 milestone Nov 11, 2023
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
Changed arguments list of GraphMLWriterLxml.dump to be consistent with the type of GraphMLWriter.dump.
(Otherwise, if we have some GraphMLWriterLxml A, and some user calls A.dump(stream) (maybe in the context of a function which takes a GraphMLWriter) then it will call the method of the parent class rather than that of the child class.)
This also makes static analysis tools happier, which reduces the amount of things to look at when debugging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants