Mypy has issues with adding classes to the locals()
in pyro.poutine.handlers
module
#3284
Labels
locals()
in pyro.poutine.handlers
module
#3284
In the
pyro.poutine.handlers
submodule there is a_make_handler
function that converts the classes from the_msngrs
list to handler functions and adds them to thelocals()
(e.g.,BlockMessenger
->block
). Then these are imported in thepyro.poutine.__init__
(i.e.,from .handlers import block
). Mypy doesn't like this. One solution could be to rename these messengers likeBlockMessenger
->block
and make them callable like in NumPyro.The text was updated successfully, but these errors were encountered: