Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
henbruas
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
henbruas
2y ago
There's no equivalent of https://rye.astral.sh/guide/pyproject/#toolryescripts yet, but it's apparently planned: https://github.com/astral-sh/uv/issues/5903#issuecomment-22
2.
▲
by
henbruas
3y ago
It's accurate. Here you go: https://twitter.com/adamwathan/status/1559250403547652097?la... https://twitter.com/adamwathan/status/1226511611592085504?la... https://twitt
3.
▲
by
henbruas
4y ago
> Yes, there are type stubs for these libraries but they’re either forced to be more strict, preventing use of dynamism, or opt for being less strict but allowing you to use all the library features, at the cost of safety. There are type
4.
▲
by
henbruas
4y ago
While it's of course not ideal, stub files can help with this issue. For example you can get stubs for Celery that make both `shared_task` and `delay` properly typed: https://github.com/sbdchd/celery-types
5.
▲
by
henbruas
4y ago
It is indeed a decorator. It's relying on https://peps.python.org/pep-0614/
6.
▲
by
henbruas
4y ago
The documentation seems VERY clear that the "type" field in package.json DOES affect the node runtime: https://nodejs.org/api/packages.html#type
7.
▲
by
henbruas
5y ago
gc_lines isn't a tuple here, it's a generator expression. It will be lazily evaluated.
8.
▲
by
henbruas
7y ago
I'm currently experimenting with it, so I don't have a lot to say yet. But you'll want to use this: https://pypi.org/project/django-stubs/