Closed liamhuber closed 1 month ago
Coverage variation | Diff coverage |
---|---|
:white_check_mark: +0.01% (target: -1.00%) | :white_check_mark: 100.00% |
Codacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
snippets/factory.py | 3 | 97.81% | ||
<!-- | Total: | 3 | --> |
Totals | |
---|---|
Change from base Build 8976724881: | 0.01% |
Covered Lines: | 3295 |
Relevant Lines: | 3716 |
The innovation of of some other function still exist.
snippets.factory
is to make dynamically generated classes pickleable. However, this is only meant to overcome the unpickleability from the fact they are dynamic -- issues like being defined in the `This PR handles the situation of decorated factories having
<locals>
involved in its qualname. Previously, the factories from a decorator always tried to go the re-import route necessary forpickle
, but this (a) still didn't work when<locals>
was there, and (b) brokecloudpickle
's ability to get past<locals>
. So now we just give up on the fancy importability in the presence of<locals>
. This has no impact onpickle
, which would have failed anyway, but letscloudpickle
push through.As a nice side effect, this lifts a constraint we had on
cloudpickle
-dependent operations like theNodeOutputJob
, which can now work on nodes defined anywhere again.