HackerTrans
TopNewTrendsCommentsPastAskShowJobs

npage97

no profile record

comments

npage97
·9 maanden geleden·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 jaar geleden·discuss
Requiring c++17 seems like a big change from standard lua.
npage97
·3 jaar geleden·discuss
You can also use from __future__ import annotations so the quotes become unnecessary. https://peps.python.org/pep-0563/
npage97
·3 jaar geleden·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.
npage97
·3 jaar geleden·discuss
For anyone curious, the reasoning for the slowness is briefly described here: https://python-poetry.org/docs/faq/#why-is-the-dependency-re...
npage97
·4 jaar geleden·discuss
In the lua realm, there is teal. It is very much like a typescript for lua

https://github.com/teal-language/tl