Comments (3)
If we do go the overload route, remember that overload compatibility checks are quadratic. While I'm not sure it will affect users (I don't think mypy at least runs the compat checks cause the errors won't be reported anyways?), we should still make sure it doesn't balloon type checking time for developing trio.
from trio.
A while back I tried writing code to generate those required overloads, just rebased it. It's very ugly, but I think it works with the exception of DTLSEndpoint.serve()
. That's also using a variadic generic, I guess the layers of inference required became too much.
from trio.
Did the trio-typing plugin do something smarter than just generate a bunch of overloads? If so maybe we could strip it down to solely that functionality [and incorporate it here].
Although perhaps somebody should just try and contribute the feature upstream, although ilevkivskyi saying it would be tedious is a bit worrying.
from trio.
Related Issues (20)
- Remove (Deprecate??) TrioDeprecationWarning HOT 4
- > (my perspective is someone who uses Trio for concurrency uses and very much a networking noob!)
- open_nursery is unable to call move_on_after when it is active, but it can still work. HOT 2
- Remaining test issues with Python 3.13.0b1: not ki_protected, pathlib.Path.resolve siganture HOT 6
- Ctrl+C behavior problems at the new REPL HOT 7
- Would be to actually port aiomultiprocess to trio? HOT 1
- No support aiohttp? HOT 2
- Trio fails under gevent with NotImplementedError: unsupported platform HOT 11
- AttributeError: type object 'GreenSocket' has no attribute 'sendmsg' HOT 4
- unexpected StopAsyncIteration HOT 6
- Why can't you await __aenter__? (Understanding trio's contracts around async context managers) HOT 5
- Problems with `trio.Lock()` across multiple tasks HOT 4
- exception forwarding in from_thread.run HOT 3
- Regression: unix socket bind does not work with a PathLike argument HOT 3
- Add a Github Action that checks for newsfragment
- move_on_ and fail_ functions should accept shield as a keyword argument
- Using trio with attrs 24.1.0 raises a warning HOT 4
- Make no-test-dependencies CI run use locked resolutions
- Make sure trio works with Read the Docs Addons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trio.