Skip to content
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

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

muddi900
Copy link
Contributor

Fixes #20

from .version import VERSION


def add_subparser(cmd_name: str, subparser, cli_gen: callable):
Copy link
Collaborator

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:

  1. subparser should have type annotation: argparse.ArgumentParser
  2. Fix type annotation on cli_gen using typing.Callable - https://mypy.readthedocs.io/en/stable/kinds_of_types.html#callable-types-and-lambdas

@zomglings
Copy link
Collaborator

@muddi900 : Looks ok to me, could you please bump the version to 0.0.2?

@zomglings
Copy link
Collaborator

@muddi900 : Could you merge main, as well? And run black on your code?

…AO#20]

Added better type hints.

black reformating

bumped the version number
@muddi900
Copy link
Contributor Author

The branch is rebased, the code is reformatted and the version number is bumped.

Copy link
Contributor

@ogarciarevett ogarciarevett left a 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

@zomglings zomglings changed the base branch from main to develop January 30, 2023 05:57
Copy link
Collaborator

@zomglings zomglings left a 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.

@zomglings zomglings merged commit 015c561 into G7DAO:develop Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hook up the Diamond, DiamondLoupeFacet, OwnershipFacet CLIs to "game7ctl"
3 participants