trio-typing icon indicating copy to clipboard operation
trio-typing copied to clipboard

There should be a functools.partial plugin

Open oremanj opened this issue 6 years ago • 2 comments

Utility isn't restricted to just Trio, but Trio programs tend to make fairly heavy use of functools.partial. I started work on this a while ago (see the 'partial' branch) but ran into a blocker bug in mypy. That bug has since been fixed, so the time might be ripe for someone to make another attempt.

oremanj avatar Apr 29 '19 23:04 oremanj

Looks like people have implemented their own partial elsewhere: https://github.com/python/mypy/issues/1484#issuecomment-625423210

But I dunno; might be worth keeping this issue open.

A5rocks avatar Nov 04 '23 05:11 A5rocks

we could possibly document it as a suggestion. At this point it feels like we should have a Typing section in the trio docs, there's probably going to pop up more stuff to put there.

jakkdl avatar Nov 04 '23 09:11 jakkdl