wandering.shop is one of the many independent Mastodon servers you can use to participate in the fediverse.
Wandering.Shop aims to have the vibe of a quality coffee shop at a busy SF&F Convention. Think tables of writers, fans and interested passers-by sharing drinks and conversation on a variety of topics.

Server stats:

794
active users

#pyright

0 posts0 participants0 posts today
Judith van Stegeren<p>TIL the overload() decorator for Python, for describing methods that support multiple different combinations of argument types. A great way to make your typechecker happy: it's much stricter and clearer than just combining multiple types with "|". </p><p><a href="https://docs.python.org/3/library/typing.html#typing.overload" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.python.org/3/library/typi</span><span class="invisible">ng.html#typing.overload</span></a></p><p><a href="https://fosstodon.org/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://fosstodon.org/tags/types" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>types</span></a> <a href="https://fosstodon.org/tags/typechecking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>typechecking</span></a> <a href="https://fosstodon.org/tags/pyright" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyright</span></a></p>
JavAlps<p><span class="h-card" translate="no"><a href="https://oldbytes.space/@feoh" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>feoh</span></a></span> Yup. For me its way better than <a href="https://mastodon.social/tags/pyright" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pyright</span></a> or <a href="https://mastodon.social/tags/basedpyright" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>basedpyright</span></a>.</p>
Chris is.<p>Let&#39;s see if an issue gets traction: <a href="https://github.com/microsoft/pyright/issues/9648" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/microsoft/pyright/i</span><span class="invisible">ssues/9648</span></a></p><p> <a href="https://wandering.shop/tags/pyright" class="mention hashtag" rel="tag">#<span>pyright</span></a> <a href="https://wandering.shop/tags/Python" class="mention hashtag" rel="tag">#<span>Python</span></a></p>
Chris is.<p>Does this <a href="https://wandering.shop/tags/pyright" class="mention hashtag" rel="tag">#<span>pyright</span></a> error strike any other <a href="https://wandering.shop/tags/Python" class="mention hashtag" rel="tag">#<span>Python</span></a> peeps as wrong?</p><p>“Return type mismatch: base method returns type &quot;Literal[&#39;&#39;]&quot;, override returns type &quot;str&quot;&quot;</p><p>It&#39;s giving me a type error when I override a method that returned a literal string with a string I construct. That doesn&#39;t make any sense.</p>