shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

244
active users

#pythontyping

0 posts0 participants0 posts today
partizan<p><span class="h-card"><a href="https://mastodon.social/@ambv" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>ambv</span></a></span> so, what do you think about this problem?</p><p>It also behaves the same way in mypy. But here bug is not closed, and i'm hoping it can be fixed.</p><p><a href="https://github.com/python/mypy/issues/11583" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/python/mypy/issues/</span><span class="invisible">11583</span></a></p><p><a href="https://mstdn.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://mstdn.social/tags/PythonTyping" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PythonTyping</span></a> <a href="https://mstdn.social/tags/Mypy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Mypy</span></a> <a href="https://mstdn.social/tags/Pyright" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Pyright</span></a></p>
partizan<p>Turns out using `func(**kwargs)`becomes very inconvinient, when you're using type-checking.</p><p>Pyright 1.1.312 landed a change:</p><p>&gt; ... The new behavior matches that of mypy and assumes that the unpacked dict may supply arguments for all otherwise-unmatched keyword parameters even if they have default argument values.</p><p><a href="https://github.com/microsoft/pyright/issues/5545" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/microsoft/pyright/i</span><span class="invisible">ssues/5545</span></a></p><p>And now i need `# type: ignore` for each `**kwargs`.</p><p><span class="h-card"><a href="https://mastodon.social/@hynek" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>hynek</span></a></span> any ideas how to approach this?</p><p>Or maybe someone on the <a href="https://mstdn.social/tags/EuroPython" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>EuroPython</span></a> ?</p><p><a href="https://mstdn.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://mstdn.social/tags/PythonTyping" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PythonTyping</span></a></p>