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 typehints and mypy test env in tox #120

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

GhostOps77
Copy link
Contributor

@GhostOps77 GhostOps77 commented Jun 23, 2024

This PR adds typehints to the existing code, and added mypy test env in tox to perform type checking in GHA

Also, changed click_repl.utils._help_internal function to just print the help text, rather than returning it, so that all function callbacks for internal command can be in the same type of Callable[[], None]

…ernal_commands' checks whether its an internal command or not, to make every callback function for every internal command takes no arguments and return None
…tisfy mypy

Using isinstance check with (Sequence, Generator, Iterator) rather than with (Mapping, Iterable) for aliases of an internal command: click_repl/utils.py
Updated testing dependencies to include flake8 and mypy: setup.cfg
@auvipy auvipy self-requested a review August 12, 2024 15:11
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.

1 participant