agronholm / agronholm/anyio

Support keyword arguments in callbacks

Aperta
#291 1 commento 1 reazione 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
2.5k
Fork
260
Merge medio
1g 8h
PR unite (30g)
17

Descrizione

When supplying sync functions and coroutine functions as callbacks, `anyio` should accept and supply keyword arguments when calling them.

The following functions accept and supply `*args` to callbacks, but not keyword arguments:
- `anyio.to_thread.run_sync()`
- `anyio.to_process.run_sync()`
- `anyio.from_thread.run_sync()`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.