Description
This library seems overkill when it basically provides only 2 or 3 lines of functional code. This creates overhead for downstream packagers etc. to package aiohttp (e.g. new packagers, or I've seen discussions of whether a security team wants to take ownership of aiohttp package but were discouraged by the number of dependencies they'd also need to support).
I'd suggest we move the code back into aiohttp and archive this project, or alternatively just add the class to frozenlist for other projects to use.
I'm not convinced the owner parameter is even useful in this project, so the entire project could just be (after tweaking frozenlist to use the class name in the repr):
class Signal(FrozenList):
__slots__ = ()
async def send(self, *args, **kwargs):
if not self.frozen:
raise RuntimeError("Cannot send non-frozen signal.")
for receiver in self:
await receiver(*args, **kwargs)
@mjpieters Any thoughts? If we proceed, I'll do a search of projects that might be using the library and provide them with PRs to migrate, as it's probably only a few.
Activity