(2) seems reasonable.
On Tue, May 14, 2019 at 3:15 AM Udi Meiri <[email protected]> wrote: > > It seems like pickling of typing types is broken in 3.5 and 3.6, fixed in 3.7: > https://github.com/python/typing/issues/511 > > Here are my attempts: > https://gist.github.com/udim/ec213305ca865390c391001e8778e91d > > > My ideas: > 1. I know that we override type object handling in pickler.py > (_nested_type_wrapper), and perhaps this mechanism can be used to pickle > typing classes correctly. The question is how. > > 2. Exclude/stub out these classes when pickling a pipeline - they are only > used for verification during pipeline construction anyway. This could be a > temporary solution for versions 3.5 and 3.6. > > Any ideas / opinions?
