Hacker News new | ask | show | jobs
by flare_blitz 254 days ago
> Using `importlib` is a horrible hack that breaks basically all tooling. You very very obviously are not supposed to do that.

This is an assertion that has absolutely no reasoning behind it. I'm not saying I disagree; I'm just saying there is a time and a place for importlib.

1 comments

Well not if you want high quality Python code. Pylint and Pyright won't understand it, and those are absolutely critical to writing Python code that works reliably.
> those are absolutely critical to writing Python code that works reliably.

Curious how much reliable Python code was written before those tools existed.

For that matter, curious how much was written before the `types` and `typing` standard library modules appeared.