question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PyInquirer\prompts\input.py", line 20 TypeError: issubclass() arg 1 must be a class

See original GitHub issue
Traceback (most recent call last):
  File "main.py", line 8, in <module>
    answers = choice()
  File "C:\Users\x\choice.py", line 85, in choice
    answers = Dict(prompt(questions, style=style))
  File "D:\Program Files\Python37\lib\site-packages\PyInquirer\prompt.py", line 63, in prompt
    application = getattr(prompts, type).question(message, **_kwargs)
  File "D:\Program Files\Python37\lib\site-packages\PyInquirer\prompts\input.py", line 20, in question
    if issubclass(validate_prompt, Validator):
  File "D:\Program Files\Python37\lib\abc.py", line 143, in __subclasscheck__
    return _abc_subclasscheck(cls, subclass)
TypeError: issubclass() arg 1 must be a class

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Psycoguanacommented, May 19, 2020

The issue has been fixed and the fix is merged

Hello, I’m having this exact same problem when trying to run the example code

1reaction
CITGurucommented, Nov 22, 2018

The issue has been fixed and the fix is merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

issubclass() arg 1 must be a class - Stack Overflow
I have zero idea as to why I'm getting this error. python.
Read more >
TypeError: issubclass() arg 1 must be a class #1298 - GitHub
I would like to share another weird edge case (with a workaround if it can help someone...) Versions. Python 3.9.9 pydantic==1.8.2. Repro. from ......
Read more >
TypeError: issubclass() arg 1 must be a class : Forums
TypeError : issubclass() arg 1 must be a class. Installed the vkbottle module through the console, I import it into the code and...
Read more >
6423 (technical_500_response fails on String Exceptions)
The formated 500 response pages you get with DEBUG = True will fail if the error that is raised is a string, instead...
Read more >
tiangolo/fastapi - Gitter
items.py", line 7, in get_items return Item.from_orm(db_get_items()) File ". ... TypeError: issubclass() arg 1 must be a class During handling of the above ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found