-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tidy some docstrings #132
Tidy some docstrings #132
Conversation
And remove extraneous timedelta param
WalkthroughThe recent changes enhance documentation and type annotations across several files, improving code clarity and maintainability. In Changes
Poem
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
docs/index.md (1)
26-26
: Convert bare URL to markdown link.Bare URLs should be converted to markdown links to enhance readability and compliance with Markdownlint rules.
- Please visit https://github.com/hyanwong/giglib to contribute to development. + Please visit [the project's GitHub repository](https://github.com/hyanwong/giglib) to contribute to development.Tools
Markdownlint
26-26: null
Bare URL used(MD034, no-bare-urls)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (4)
- docs/index.md (1 hunks)
- giglib/graph.py (3 hunks)
- giglib/tables.py (6 hunks)
- tests/test_tables.py (1 hunks)
Files skipped from review due to trivial changes (1)
- giglib/graph.py
Additional context used
Markdownlint
docs/index.md
26-26: null
Bare URL used(MD034, no-bare-urls)
Additional comments not posted (7)
tests/test_tables.py (1)
34-35
: LGTM! Changes are correctly implemented.The test function
test_simple_from_tree_sequence_with_timedelta
has been correctly updated to remove thetimedelta
parameter from thefrom_tree_sequence
method call and introduce thechange_times
method call to manage thetimedelta
parameter.giglib/tables.py (6)
1139-1143
: Docstring and type annotation update inTables.copy
method approved.The updated docstring and the addition of the return type annotation improve the clarity and documentation of the method.
1244-1246
: Docstring and type annotation update inTables.graph
method approved.The updated docstring and the addition of the return type annotation improve the clarity and documentation of the method.
1256-1257
: Docstring and type annotation update inTables.sample_ids
property approved.The updated docstring and the addition of the return type annotation improve the clarity and documentation of the property.
1273-1278
: Docstring and type annotation update inTables.decapitate
method approved.The updated docstring and the addition of the return type annotation improve the clarity and documentation of the method.
1311-1319
: Docstring and type annotation update inTables.from_tree_sequence
method approved.The updated docstring and the addition of the return type annotation improve the clarity and documentation of the method. The removal of the
timedelta
parameter simplifies the method signature.
1139-1143
: Docstring and type annotation update inTables.copy
method approved.The updated docstring and the addition of the return type annotation improve the clarity and documentation of the method.
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