HackerTrans
TopNewTrendsCommentsPastAskShowJobs

npage97

no profile record

comments

npage97
·9 months ago·discuss
You have to opt in with the lazy import keyword no matter what. This pep also prevents lazy import in try catch. I think your concern matters if ‘module’ itself has a lazy import that you want to check exists. With this you now need to be more rigorous in check those sub dependencies.

This can already happen with non top level imports so it is not a necessarily a new issue, but could become more prevalent if there is an overall uptake in this feature for optional dependencies.
npage97
·3 years ago·discuss
Requiring c++17 seems like a big change from standard lua.
npage97
·3 years ago·discuss
You can also use from __future__ import annotations so the quotes become unnecessary. https://peps.python.org/pep-0563/
npage97
·3 years ago·discuss
Ruff is definitely faster by lacking type-checking. That requires way more analysis.

Ruff will work fine without type hints.

I believe it rightfully leaves it to mypy for those who want those features.

Mypy transpiles itself to c using mypyc and that can still take a while to complete when caches get invalidated.