veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

214
active users

#mypy

0 posts0 participants0 posts today
sumanthvepa<p><a href="https://mastodon.social/tags/ChatGPT" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ChatGPT</span></a> introduced me to a couple of cool things in <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> today. When you know that a function returns a specific type you can use assert to let <a href="https://mastodon.social/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a> know that. Or you can use the cast() or TypeGuard. </p><p><a href="https://chatgpt.com/share/67d9f37a-5434-8009-884a-60eed44951cb" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">chatgpt.com/share/67d9f37a-543</span><span class="invisible">4-8009-884a-60eed44951cb</span></a></p>
Olivia A-C<p>New account, so new <a href="https://transfem.social/tags/introduction" rel="nofollow noopener" target="_blank">#introduction</a><span>. Let's do it again!<br><br>I have a </span><a href="https://transfem.social/tags/MastersDegree" rel="nofollow noopener" target="_blank">#MastersDegree</a> in <a href="https://transfem.social/tags/ComputerScience" rel="nofollow noopener" target="_blank">#ComputerScience</a> and <a href="https://transfem.social/tags/ComputerEngineering" rel="nofollow noopener" target="_blank">#ComputerEngineering</a>. I went to <a href="https://transfem.social/tags/NMU" rel="nofollow noopener" target="_blank">#NMU</a> for undergrad and <a href="https://transfem.social/tags/MSU" rel="nofollow noopener" target="_blank">#MSU</a> for my graduate degree. I currently work at <a href="https://transfem.social/tags/UChicago" rel="nofollow noopener" target="_blank">#UChicago</a> for the <a href="https://transfem.social/tags/TMWCenter" rel="nofollow noopener" target="_blank">#TMWCenter</a><span>, which focuses on helping young children acquire language (and therefore other learning skills) faster.<br><br>In my spare time, I develop </span><a href="https://transfem.social/tags/OpenSourceSoftware" rel="nofollow noopener" target="_blank">#OpenSourceSoftware</a><span> such as<br>- a </span><a href="https://transfem.social/tags/SphinxDoc" rel="nofollow noopener" target="_blank">#SphinxDoc</a> extension that embed <a href="https://transfem.social/tags/Fediverse" rel="nofollow noopener" target="_blank">#Fediverse</a><span> comments on your page<br>- a library to talk to </span><a href="https://transfem.social/tags/ManifoldMarkets" rel="nofollow noopener" target="_blank">#ManifoldMarkets</a> from native <a href="https://transfem.social/tags/Python" rel="nofollow noopener" target="_blank">#Python</a><span><br>- a </span><a href="https://transfem.social/tags/PredictionMarket" rel="nofollow noopener" target="_blank">#PredictionMarket</a><span> manager using the above<br>- a </span><a href="https://transfem.social/tags/transpiler" rel="nofollow noopener" target="_blank">#transpiler</a> from a subset of Python to <a href="https://transfem.social/tags/OpenStreetMaps" rel="nofollow noopener" target="_blank">#OpenStreetMaps</a>'s <a href="https://transfem.social/tags/OverpassQL" rel="nofollow noopener" target="_blank">#OverpassQL</a><span><br>- bug fixes to many other projects, including </span><a href="https://transfem.social/tags/mypy" rel="nofollow noopener" target="_blank">#mypy</a>, <a href="https://transfem.social/tags/base58" rel="nofollow noopener" target="_blank">#base58</a>, <a href="https://transfem.social/tags/attrs" rel="nofollow noopener" target="_blank">#attrs</a>, <a href="https://transfem.social/tags/CPython" rel="nofollow noopener" target="_blank">#CPython</a><span>, &amp; more<br><br>I spend a fair bit of my time these days on </span><a href="https://transfem.social/tags/MathResearch" rel="nofollow noopener" target="_blank">#MathResearch</a>, specifically into the <a href="https://transfem.social/tags/ThueMorse" rel="nofollow noopener" target="_blank">#ThueMorse</a><span> Sequence and its extensions.<br><br>I'm also a hobbyist editor on OpenStreetMap.<br><br></span><a href="https://transfem.social/tags/Demisexual" rel="nofollow noopener" target="_blank">#Demisexual</a>, <a href="https://transfem.social/tags/transfem" rel="nofollow noopener" target="_blank">#transfem</a>, and happily engaged to my <a href="https://transfem.social/tags/enby" rel="nofollow noopener" target="_blank">#enby</a><span> sweetheart.<br><br>We have two cats: </span><a href="https://transfem.social/tags/OpheTheLoaf" rel="nofollow noopener" target="_blank">#OpheTheLoaf</a> and <a href="https://transfem.social/tags/MayalaranTheCat" rel="nofollow noopener" target="_blank">#MayalaranTheCat</a> (yes, from <a href="https://transfem.social/tags/StormlightArchive" rel="nofollow noopener" target="_blank">#StormlightArchive</a>) See <a href="https://transfem.social/notes/a4im5yv5i02700my" rel="nofollow noopener" target="_blank">here</a><span> for more on them!<br><br>I speak English fluently, Spanish haltingly, and am trying to learn Chinese<br><br></span><a href="https://transfem.social/tags/queer" rel="nofollow noopener" target="_blank">#queer</a> <a href="https://transfem.social/tags/Chicago" rel="nofollow noopener" target="_blank">#Chicago</a></p>
Mark T. Tomczak<p>The static type annotation system in Python (and associated typecheckers) really turns it into a business-ready language. I'm making some big refactors, and I don't know how I would pull them off without type verification.</p><p>So many situations where I change a function signature and discover it's being called ⬅️ ⬅️ ⬅️ ⬅️ ⬅️ ⬅️ ⬅️ ⬅️ alllllll the way over there and would just runtime-error without mypy letting me know the signatures no longer match.</p><p>Seriously, static type annotation alone has moved Python from "cute toy language" to "production-worthy" in my professional toolbox.</p><p><a href="https://mastodon.fixermark.com/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a> <a href="https://mastodon.fixermark.com/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a></p>
Olivia A-C<p>Oh dang, my <a href="https://tech.lgbt/tags/introduction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>introduction</span></a> post is waaay out of date now. Let's do it again!</p><p>I have a <a href="https://tech.lgbt/tags/MastersDegree" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastersDegree</span></a> in <a href="https://tech.lgbt/tags/ComputerScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ComputerScience</span></a> and <a href="https://tech.lgbt/tags/ComputerEngineering" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ComputerEngineering</span></a>. I went to <a href="https://tech.lgbt/tags/NMU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NMU</span></a> for undergrad and <a href="https://tech.lgbt/tags/MSU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MSU</span></a> for my graduate degree. I currently work at <a href="https://tech.lgbt/tags/UChicago" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UChicago</span></a> for the <a href="https://tech.lgbt/tags/TMWCenter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TMWCenter</span></a>, which focuses on helping young children acquire language (and therefore other learning skills) faster.</p><p>In my spare time, I develop <a href="https://tech.lgbt/tags/OpenSourceSoftware" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSourceSoftware</span></a> such as</p><ul><li>a library to talk to <a href="https://tech.lgbt/tags/ManifoldMarkets" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManifoldMarkets</span></a> from native <a href="https://tech.lgbt/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a></li><li>a <a href="https://tech.lgbt/tags/PredictionMarket" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PredictionMarket</span></a> manager using the above</li><li>a <a href="https://tech.lgbt/tags/transpiler" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>transpiler</span></a> from a subset of Python to <a href="https://tech.lgbt/tags/OpenStreetMaps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenStreetMaps</span></a>'s <a href="https://tech.lgbt/tags/OverpassQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OverpassQL</span></a></li><li>bug fixes to many other projects, including <a href="https://tech.lgbt/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a>, <a href="https://tech.lgbt/tags/base58" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>base58</span></a>, <a href="https://tech.lgbt/tags/attrs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>attrs</span></a>, <a href="https://tech.lgbt/tags/CPython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CPython</span></a>, &amp; more</li></ul><p>I spend a fair bit of my time these days on <a href="https://tech.lgbt/tags/MathResearch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MathResearch</span></a>, specifically into the <a href="https://tech.lgbt/tags/ThueMorse" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ThueMorse</span></a> Sequence and its extensions.</p><p>I'm also a hobbyist editor on OpenStreetMap.</p><p><a href="https://tech.lgbt/tags/Demisexual" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Demisexual</span></a>, <a href="https://tech.lgbt/tags/transfem" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>transfem</span></a>, and happily engaged to my <a href="https://tech.lgbt/tags/enby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>enby</span></a> sweetheart.</p><p>We have two cats: <a href="https://tech.lgbt/tags/OpheTheLoaf" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpheTheLoaf</span></a> and <a href="https://tech.lgbt/tags/MayalaranTheCat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MayalaranTheCat</span></a> (yes, from <a href="https://tech.lgbt/tags/StormlightArchive" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StormlightArchive</span></a>)</p><p><a href="https://tech.lgbt/tags/queer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>queer</span></a> <a href="https://tech.lgbt/tags/Chicago" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Chicago</span></a></p>
Sharlatan<p>Good news <a href="https://mastodon.social/tags/NumPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NumPy</span></a> is built 1.23.2-&gt;1.24.4 with the latest <a href="https://mastodon.social/tags/pytest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>pytest</span></a> and <a href="https://mastodon.social/tags/MyPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MyPy</span></a>, any other versions up to 1.26.4 could not be built without a higher level of wizardry.</p><p><a href="https://mastodon.social/tags/Pandas" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Pandas</span></a> has been built on the latest version!</p><p>Fixing failing dependency to build <a href="https://mastodon.social/tags/SciPy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SciPy</span></a> hoping to refresh it to the latest version when chaning packages are resolved.</p><p>70+ commits are in the queue for the python team in <a href="https://mastodon.social/tags/Guix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Guix</span></a>. </p><p>Oh Brave New World...</p>
Chris is.<p>How on earth are users of django-stubs getting the “id" field to work properly? Does nobody ever refer to it in code? Am I holding it wrong? I have so many instances of ‘error: "NominatingMemberProfile" has no attribute "id"' in my mypy output, and I can't help but wonder what the hell I'm doing wrong. <a href="https://wandering.shop/tags/django" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>django</span></a> <a href="https://wandering.shop/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a> <a href="https://wandering.shop/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
chris 🥐<p>i apparently wasn't running <a href="https://hachyderm.io/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a> from the right directory to access my `mypy.ini` config, so after fixing that, my humble 358 errors turned into a whopping 1418 errors 🫣🫠🫥 [internal screaming]</p><p><a href="https://hachyderm.io/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a></p>
chris 🥐<p>TIL in my <a href="https://hachyderm.io/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://hachyderm.io/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a> adventures, the proper way to set up a class that returns itself is to use the `Self` typing annotation and return values by calling `self.__class__` on the new value</p><p>```python<br>from typing import Self<br>class ImActuallyAString(str):<br> def one_longer(self) -&gt; Self:<br> return self.__class__(self + "one")<br>``` </p><p>ᕕ( ᐛ )ᕗ (please tell me if I'm wrong lol)</p>
David Ellis<p><a href="https://techhub.social/tags/Typescript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Typescript</span></a>, <a href="https://techhub.social/tags/Mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mypy</span></a>, etc have been popular for a few years now. If you prefer them to regular <a href="https://techhub.social/tags/Javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Javascript</span></a>, <a href="https://techhub.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a>, etc, what's the *main* reason why?</p>
Glyph<p>PEP 593 is a bit vague on how you’re supposed to actually consume arguments to `Annotated`; here is my proposal.</p><p><a href="https://blog.glyph.im/2023/12/annotated-at-runtime.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.glyph.im/2023/12/annotate</span><span class="invisible">d-at-runtime.html</span></a></p><p><a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a></p>
Folker<p><span class="h-card" translate="no"><a href="https://mastodon.social/@zenforyen" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>zenforyen</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@askonomm" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>askonomm</span></a></span> <span class="h-card" translate="no"><a href="https://mindly.social/@cazabon" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>cazabon</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.km6g.us/@kevin" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kevin</span></a></span> <span class="h-card" translate="no"><a href="https://furry.engineer/@ado" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ado</span></a></span> </p><p>How would you express something like the following architecture in <a href="https://mastodon.social/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a> friendly <a href="https://mastodon.social/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> code or even better in different programming languages like <a href="https://mastodon.social/tags/cpp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpp</span></a>, <a href="https://mastodon.social/tags/java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>java</span></a>, <a href="https://mastodon.social/tags/golang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>golang</span></a> etc?</p><p>(One part of our software is fundamentally based on countless such calls all over the place.)</p><p>def f(smart_evaluator, a, b):<br> ...</p><p>def g(...):<br> x = smart_evaluator.exec(f, someting_extra, a, b)</p><p>Of course it is possible, but the question is how natural, easy and elegant it is.</p>
C.<p><span class="h-card"><a href="https://mastodon.social/@folkerschamel" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>folkerschamel</span></a></span> <span class="h-card"><a href="https://furry.engineer/@ado" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ado</span></a></span> </p><p>Asking for specific <a href="https://mindly.social/tags/examples" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>examples</span></a> type checking finds is ... unproductive. You write 2 modules of code, run <a href="https://mindly.social/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a>, and get a list of the 11 places you need to fix - before you've even written unit tests that may or may not have caught the same problem.</p><p>If I tried to keep track of them all, I wouldn't have time to write code.</p><p>[...]</p><p><a href="https://mindly.social/tags/TypeHints" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TypeHints</span></a> <a href="https://mindly.social/tags/TypeChecking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TypeChecking</span></a> <a href="https://mindly.social/tags/tests" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tests</span></a> <a href="https://mindly.social/tags/lint" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lint</span></a></p>
Olivia Appleton<p>It's time for a re-<a href="https://mastodon.social/tags/introduction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>introduction</span></a>!</p><p>I'm a <a href="https://mastodon.social/tags/MastersStudent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastersStudent</span></a> in <a href="https://mastodon.social/tags/ComputerScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ComputerScience</span></a>. In my spare time, I develop <a href="https://mastodon.social/tags/OpenSourceSoftware" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSourceSoftware</span></a> such as<br>- a library to talk to <a href="https://mastodon.social/tags/ManifoldMarkets" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ManifoldMarkets</span></a> from native <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Python</span></a><br>- a <a href="https://mastodon.social/tags/PredictionMarket" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PredictionMarket</span></a> manager using the above<br>- a transpiler from a subset of Python to <a href="https://mastodon.social/tags/OpenStreetMaps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenStreetMaps</span></a>'s OverpassQL<br>- bug fixes to many other projects, including <a href="https://mastodon.social/tags/mypy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mypy</span></a>, <a href="https://mastodon.social/tags/base58" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>base58</span></a>, <a href="https://mastodon.social/tags/attrs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>attrs</span></a>, <a href="https://mastodon.social/tags/cpython" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cpython</span></a>, and more</p><p>I'm also a hobbyist editor on OpenStreetMap.</p><p><a href="https://mastodon.social/tags/Bi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bi</span></a>, <a href="https://mastodon.social/tags/transfem" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>transfem</span></a>, and happily dating my enby sweetheart</p>