Skip to content

Fix receiver signature for corrected blinker signal.send() API in bw2data#41

Open
cmutel wants to merge 1 commit into
mainfrom
fix-blinker-signal-sender
Open

Fix receiver signature for corrected blinker signal.send() API in bw2data#41
cmutel wants to merge 1 commit into
mainfrom
fix-blinker-signal-sender

Conversation

@cmutel

@cmutel cmutel commented May 29, 2026

Copy link
Copy Markdown
Member

Summary

bw2data is fixing its signal.send() calls to pass the sender as the first positional argument per blinker's documented API (see brightway-lca/brightway2-data#220).

For project_changed, the new call is:

project_changed.send(self, dataset=self.dataset)

This means receivers are now called as receiver(projects_instance, dataset=project_dataset) instead of the old broken receiver(project_dataset).

Updated update_allocation_strategies_on_project_change signature from (project_dataset) to (sender, *, dataset, **kwargs).

Test plan

  • Confirm tests pass once the companion bw2data PR is merged and installed

…ker API

bw2data now passes the Projects instance as the blinker sender and the dataset
as a dataset= keyword argument, per blinker's documented signal.send() API.
Update receiver signature accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant