Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Improve typing and docstrings #87
Improve typing and docstrings #87
Changes from 17 commits
8ff2c89
aacca4b
fa14797
75c0bc0
69c69a2
3126c89
46198d0
168b4a0
09811b0
cb1b3db
310b1af
c2dccd0
57c1ab7
9950294
c9af10c
df1884e
414492d
da7ac93
f495acc
acd8769
6d60132
e035881
5051f13
1c6b4ea
23ed9d8
1139876
dd10c82
0f3d01a
cd4c131
b1c34d5
3dcecbe
d4ed327
1991a07
3939070
b324728
a55f223
48e87a7
4282c9d
942ad60
b8a510a
0ac20c5
c973350
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
as you go through these, it's better to remove the redundant type annotations inside the docstrings rather than update them
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.
Should we keep the leading colons? The examples in Google's styleguide show none.
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.
if the documentation works without it, then no! I am not usually using this code style so I don't know all the specifics
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 went through the docstrings and cleaned them up. This should be addressed now.
The styleguide also writes about function arguments: "The description should include required type(s) if the code does not contain a corresponding type annotation." Opinions on this matter?
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.
it's useful to add a docstring to each of these tuples to give some additional context about what they are and where they're used
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.
also, this could be a place to use a namedtuple to make it even more explicit
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.
Thats a good idea 👍