L iOdZddlmZddlZddlZddlZddlZddlZddlZddl m Z ddl m Z dZ ejjZej"ZGddeZGd d Zd d Zy) z>Monkey-patching to add multiprocessing support for coverage.py) annotationsN)Any) DebugControlz_coverage$patchedceZdZdZdZy)ProcessWithCoveragez.get_preparation_data_with_stowawayps -d3A$V,AjMHr+T)rCr:r;zdict[str, Any])hasattrmultiprocessingPATCHED_MARKERrr%OriginalProcessospathabspathenvironr@get_preparation_data ImportErrorAttributeErrorsetattr)r0r@rFrEs` @r$r6r6Os/!4!?!?O%'GGOOF$;BJJ !H)(-(B(B%   &H" O^T2  (   s"BB*)B*r9)r) __future__rrHmultiprocessing.processrKos.pathrrtypingrcoverage.debugrrIprocess BaseProcessrJr%rrr-r6r*r+r$rZshE"  '%"))55$//$:/$:N / /)3r+