magmax/python-inquirer

Add type hinting

Opened this issue · 6 comments

  • Add static type checks
  • Add dynamic type checks

Love using the library, works awesome. Question though. Would it be possible to generate an array of questions given a dataclass as input? Or is that way out of scope for this library?

As mypy states: Skipping analyzing "inquirer": found module but no type hints or library stubs.
So please tell me what is the status of this issue?

@Lonerider2010 0% done unfortunatelly. You have options:

  1. Add to mypy ignore (as I used to do)
  2. Use a similar typed library (such as prompt-toolkit)
  3. Contribute with a PR and I will be glad to review it

@magmax Thanks for your reply. According to mutable types: What about Union? Or if nothing else helps, there is still the type hint Any...
So my conclusion is: Adding type hinting to Inquirer would help a lot, definitely not only to me.

BTW. the answer to @jayrod's question is of great interest for me, too.