logoalt Hacker News

vaylianyesterday at 2:43 PM1 replyview on HN

Can these constraints be statically checked with mypy or a language server?


Replies

BigTTYGothGFyesterday at 4:36 PM

The dtype constraint can with pyright (and presumably others). We're still on older versions of numpy so I don't have first hand knowledge of the shape constraints.