-
Notifications
You must be signed in to change notification settings - Fork 7
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
Added Dimonds and Ownership to cli and refactored subparser[Issue #20] #21
Conversation
game7ctl/game7ctl/cli.py
Outdated
from .version import VERSION | ||
|
||
|
||
def add_subparser(cmd_name: str, subparser, cli_gen: callable): |
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.
@muddi900 : Seems like an unnecesary abstraction - you aren't really saving anything with this add_subparser
function.
But if you do want to keep it, I don't have a super strong opinion.
I would suggest:
subparser
should have type annotation:argparse.ArgumentParser
- Fix type annotation on
cli_gen
usingtyping.Callable
- https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas
@muddi900 : Looks ok to me, could you please bump the version to 0.0.2? |
@muddi900 : Could you merge |
…AO#20] Added better type hints. black reformating bumped the version number
The branch is rebased, the code is reformatted and the version number is bumped. |
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.
Please aim to the "develop" branch
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.
lgtm
@ogarciarevett : I changed target branch to develop
myself. Merging now.
Fixes #20