pallets-eco / blinker

A fast Python in-process signal/event dispatching system.

Home Page:https://blinker.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Receiver function without sender argument

asztalosdani opened this issue · comments

We have a project where we are using a bunch of signals, but we don't care about the sender in the receiver functions, just the kwargs passed to the signal.
Would it be possible to modify blinker to allow connecting functions without a sender first argument?

You can write a decorator that applies the blinker decorator and discards the first argument, but this isn't something we'll change here.