Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

There should be a functools.partial plugin #11

Open
oremanj opened this issue Apr 29, 2019 · 2 comments
Open

There should be a functools.partial plugin #11

oremanj opened this issue Apr 29, 2019 · 2 comments

Comments

@oremanj
Copy link
Member

oremanj commented Apr 29, 2019

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.

@A5rocks
Copy link

A5rocks commented Nov 4, 2023

Looks like people have implemented their own partial elsewhere: python/mypy#1484 (comment)

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

@jakkdl
Copy link
Member

jakkdl commented Nov 4, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants