Skip to content

Crashes in Python 3.8 (and prior) due to usage of list[str] type annotation by terminaltables3 #498

@zkprisma

Description

@zkprisma

What happened:

TypeError in terminaltables3\width_and_alignment.py", line 49

What you expected to happen:

to work and give output

Output with --explain

Please provide the output of running the same command with the --explain flag like so

$ howdoi YOUR_COMMAND --explain
C:\Users\zeev.PRISMA\pz\microservices\pz_integrations\zebra\test_utils>howdoi install howdoi --explain
Traceback (most recent call last):
  File "C:\Users\zeev.PRISMA\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\zeev.PRISMA\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\zeev.PRISMA\virtualenvs\pzdev\Scripts\howdoi.exe\__main__.py", line 4, in <module>
  File "c:\users\zeev.prisma\virtualenvs\pzdev\lib\site-packages\howdoi\howdoi.py", line 33, in <module>
    from keep import utils as keep_utils
  File "c:\users\zeev.prisma\virtualenvs\pzdev\lib\site-packages\keep\utils.py", line 12, in <module>
    from terminaltables3 import AsciiTable
..
  File "c:\users\zeev.prisma\virtualenvs\pzdev\lib\site-packages\terminaltables3\width_and_alignment.py", line 49, in <module>
    ) -> list[str]:
TypeError: 'type' object is not subscriptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions