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

load_nodes_from_json works with both str and dict args #398

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

nh916
Copy link
Contributor

@nh916 nh916 commented Oct 24, 2023

Description

load_nodes_from_json works with both str and dict args
this makes the function a more versatile and makes user scripts easier to write since they don't have to change formats.

The code written for it is pretty clean and nice to work with I think.

Changes

  • load_nodes_from_json accepts with JSON str or dict arguments
  • wrote a small test for load_nodes_from_json using a JSON dict argument

Known Issues

Notes

Checklist

  • My name is on the list of contributors (CONTRIBUTORS.md) in the pull request source branch.
  • I have updated the documentation to reflect my changes.

this makes the function a more versatile and makes user scripts easier to write since they don't have to change formats.

The code written for it is pretty clean and nice to work with I think.
@trunk-io
Copy link

trunk-io bot commented Oct 24, 2023

Merging to develop in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@nh916 nh916 marked this pull request as draft October 24, 2023 20:18
@nh916
Copy link
Contributor Author

nh916 commented Oct 24, 2023

need to update code example with doctest after this PR is in #371

@nh916 nh916 marked this pull request as ready for review October 30, 2023 20:04
@nh916 nh916 requested a review from InnocentBug October 30, 2023 20:04
@nh916 nh916 merged commit 452bab4 into develop Oct 31, 2023
13 checks passed
@nh916 nh916 deleted the load_nodes_from_json-works-with-str-or-dict branch October 31, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants