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

Click.option: --axis #38

Open
iPoetDev opened this issue May 28, 2023 · 0 comments
Open

Click.option: --axis #38

iPoetDev opened this issue May 28, 2023 · 0 comments
Assignees

Comments

@iPoetDev
Copy link
Owner

Desired state:

  • To Use App.values.Find.Axis.(property) in all string values
  • Doing this caused ths traceback only on this click.option.
  • Undoing to to previous working state( with naked string values) fixed it. See the code snippet below.
Traceback (most recent call last):
  File "D:\Code\Code Institute\PyCriteria\app.py", line 1121, in <module>
    @click.option('--axis', 'axis',
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Code\Code Institute\LoveSandwiches\venv\Lib\site-packages\click\decorators.py", line 308, in decorator
    _param_memo(f, OptionClass(param_decls, **option_attrs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\Code\Code Institute\LoveSandwiches\venv\Lib\site-packages\click\core.py", line 2492, in __init__
    help = inspect.cleandoc(help)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Lang\python\3.11\Lib\inspect.py", line 873, in cleandoc
    lines = doc.expandtabs().split('\n')
            ^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'expandtabs'

[pycriteria] app.py (Lines 1266-1271)


@click.option('-a', '--axis', 'axis',
              type=click.Choice(choices=['index'],
                                case_sensitive=False),
              default='index',
              prompt=True,
              required=True)

Open in IDE · Open on GitHub

Created from JetBrains using CodeStream

@iPoetDev iPoetDev self-assigned this May 28, 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

No branches or pull requests

1 participant