Nyakku Shigure

8 posts

Nyakku Shigure

Nyakku Shigure

@SigureMo

Katılım Mart 2019
45 Takip Edilen28 Takipçiler
GitHub
GitHub@github·
LGTM. Ship it! Works on my computer 👍 What's your go-to phrase for approving pull requests?
English
173
34
460
167.2K
Nyakku Shigure
Nyakku Shigure@SigureMo·
@hd_nvim Such as Unpack? You can find it from typing_extensions (pypi.org/project/typing…) before Python 3.11. If you want to support Python 3.8, you just need `from typing_extensions import Unpack`. Of course, you need add it to dependencies.
English
1
0
1
52
Herrington Darkholme
Herrington Darkholme@hd_nvim·
What's the best practice to ship Python typing as a library? 🤔 I found a lot of typing support is not compatible with Py < 3.11 🥲
English
2
0
4
1.1K
Nyakku Shigure
Nyakku Shigure@SigureMo·
@hd_nvim 是这个嘛😂?本来我也想说可以写这样一个函数的,不过如果是 API 的话好像也没什么好的办法,目前 Python 社区公认做法应该就是用 assert 来解决了(确实很麻烦),倒是有个上古的 PEP 505 peps.python.org/pep-0505/ 对类似场景可能有少许改进,但是一直没有进展(Deferred)
Nyakku Shigure tweet media
中文
2
0
1
79
Herrington Darkholme
Herrington Darkholme@hd_nvim·
I have a Python method returning optional data. But I am sure it will return non-null in test. How can I call a method on that return value without type error? 🤔
English
2
0
3
1.2K
Nyakku Shigure
Nyakku Shigure@SigureMo·
突然发现我现在一天的步数比以前三个月的步数总数还多_(:з」∠)_(话说这一年我都干了啥
Nyakku Shigure tweet mediaNyakku Shigure tweet media
中文
0
0
0
0
Nyakku Shigure
Nyakku Shigure@SigureMo·
我被解封了???我终于被解封了???
中文
0
0
1
0