Re:Python Type Hints – How to Handle Optional Imports
by wodenokoto on Tuesday January 04, 2022 @10:57PM
(#29804946)
Would it work if you used importlib?
[ Parent
| on HN ]
Re:Python Type Hints – How to Handle Optional Imports
by adamchainz on Wednesday January 05, 2022 @01:13PM
(#29812717)
It will work but Mypy won't know to use the type hints for the markdown module.