top | item 45469245

(no title)

flare_blitz | 5 months 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.

discuss

order

IshKebab|4 months ago

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.

zahlman|4 months ago

> 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.