Skip to content
#

static-typing

Here are 61 public repositories matching this topic...

antonagestam
antonagestam commented Oct 18, 2021

#148 introduced nice reprs for the shipped predicates and predicate factories. We can go a bit further and also implement specialized support for functools.partial objects.

PoC

>>> po = partial(str.split, sep=".", maxsplit=3)
>>> f"{po.func.__qualname__}({', '.join(po.args)}, {', '.join(f'{k}={v!r}' for k, v in po.keywords.items())})"
"str.split(, sep='.', maxsplit=3)"
mrkeuz
mrkeuz commented Nov 9, 2021

Hi, guys,

Really appreciate you work! Thanks! 🚀🚀🚀

Could you advise how it can set up stubs in PyCharm? I attached stubs into IDE but get warnings for all parameters, as stubs does not have arguments. I use micropython-esp32-1_16 variant for generic esp32 board.

Could you advise how trick PyCharm somehow for validate only function/method names?

Improve this page

Add a description, image, and links to the static-typing topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the static-typing topic, visit your repo's landing page and select "manage topics."

Learn more