-
Notifications
You must be signed in to change notification settings - Fork 27
improved docstrings #30
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
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 182
💛 - Coveralls |
2 similar comments
Pull Request Test Coverage Report for Build 182
💛 - Coveralls |
Pull Request Test Coverage Report for Build 182
💛 - Coveralls |
Pull Request Test Coverage Report for Build 183
💛 - Coveralls |
This is a good start. The docs should look more like this: https://github.com/apertium/streamparser/blob/master/streamparser.py#L187 So that they can be used to generate a pretty HTML page. |
@sushain97 Alright I'll change all the docstrings to that format ! |
@sushain97 I've updated the docstrings. I'll cover more functions if required. How do these look? |
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 looked through some of this but there are a ton of spelling mistakes that should be fixed.
def update_modes(pair_path): # type: (str) -> None | ||
modes = search_path(pair_path) | ||
def update_modes(path): # type: (str) -> None | ||
"""Updates the install modes |
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.
install
=> installed
Args: | ||
path(str): A string that is the absolute location to the modes to be installed | ||
Yelids: |
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.
Yelids
=> Yields
This won't be picked up by the parser.
Moreover, it should probably be returns.
Actually, does it even return anything?
"""Updates the install modes | ||
Args: | ||
path(str): A string that is the absolute location to the modes to be installed |
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.
This doesn't make it clear that this path will be added, the old ones won't be removed.
|
||
|
||
class Analyzer: | ||
"""An Analyzer object containing it's analysis mode and langugage |
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
=> its
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.
langugage
=> language
"""Updates the install modes | ||
Args: | ||
path(str): A string that is the absolute location to the modes to be installed |
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.
path(str)
=> path (str)
@sushain97 Docstring isolated PR