Repo Added
|
Files
868
|
Badge
README BADGES
|
push
github
Fix pickling of SabreSwap (#15074) (#15076) This commit fixes the support for pickling SabreSwap. In #14317 a new RoutingTarget rust struct was added to encapsulate the target details, and this was exposed to Python so that the Python class for the transpiler pass was able to reuse the object between multiple runs. However, this new type didn't implement pickle support and it would cause a failure when trying to pickle a SabreSwap instance that had a routing target populated. This commit fixes this oversight and implements pickle support for the RoutingTarget so that SabreSwap can always be pickled. Fixes #15071 (cherry picked from commit a816e64bb) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
31 of 38 new or added lines in 1 file covered. (81.58%)
17 existing lines in 4 files now uncovered.92270 of 104402 relevant lines covered (88.38%)
555982.55 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|