Closed hyanwong closed 3 months ago
The recent changes enhance documentation and type annotations across several files, improving code clarity and maintainability. In giglib/graph.py
, parameter descriptions and return types were added. In giglib/tables.py
, docstrings and type annotations were updated, and a parameter was removed. The test file tests/test_tables.py
was updated to match these modifications. Additionally, a call to action for contributions was included in the documentation.
Files | Change Summary |
---|---|
docs/index.md | Added a call to action for contribution by providing a link to the GitHub repository. |
giglib/graph.py | Added parameter descriptions and return types for methods to_tree_sequence , decapitate , and sample_resolve in the Graph class. |
giglib/tables.py | Clarified copy method docstring, added type annotations, and removed timedelta parameter from from_tree_sequence method. |
tests/test_tables.py | Modified test_simple_from_tree_sequence_with_timedelta to adjust for the removal of the timedelta parameter. |
In the code where graphs do weave,
> Types and docs now interleave,
> From tables' time to tests' embrace,
> Clarity and rhyme replace the chase.
> Contributions call, come one, come all,
> To improve the code, both big and small!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
And remove extraneous timedelta param
Summary by CodeRabbit
Documentation
Graph
class for better clarity.Refactor
Graph
andTables
classes to include parameter and return type annotations.timedelta
parameter from thefrom_tree_sequence
method and adjusted related logic.Tests