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

Add support to generated CLIs for function arguments of arbitrary type #113

Merged
merged 3 commits into from
Aug 9, 2023

Conversation

zomglings
Copy link
Contributor

This is done the same way we handle tuple arguments, using type=eval.

Resolves #112

Also removed mypy type check in linting - that's been broken for a long time.

Pinned web3 version to <6.0.0.

Tests and mypy checks are completely broken. We will fix them later.
@@ -15,7 +15,7 @@
"black",
"inflection",
"libcst",
"pysha3<2.0.0,>=1.0.0",
"pysha3<2.0.0,>=1.0.0; python_version < '3.6'",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify python_version version? Is it falling on your side? When I installed it without python_version specified in setup.py it also not exists in pip freeze

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was failing on my side with Python 3.11, which changed the LibPython.h to not include something required by pysha3.

pysha3 is also deprecated and not used after Python 3.6 - https://github.com/tiran/pysha3

When it is used, it's a monkey patch on hashlib anyway.

So I think it's ok to keep this python_version < 3.6 constraint. Should not affect anyone's user experience.

Copy link
Contributor

@kompotkot kompotkot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lg

@zomglings zomglings merged commit 01d0ed1 into main Aug 9, 2023
4 checks passed
@zomglings zomglings deleted the arbitrary-cli-argtypes branch August 9, 2023 20:19
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.

Type: tuple[]
2 participants