Only register callable items in lists
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Prior to this, you could sneak a list of anything to register_hook and it would accept it. This will check if the items in the list are callable before registering them. Also added a regression test to make sure if this gets changed it will be noticed.
authored by Ian Cordasco · committed by Ian Cordasco · parent 7c520ec · Browse files · 2 files+7 added−3 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+7 added−3 removed
- tests:+4 added−0 removed
- other:+3 added−3 removed