anki/monkeytype_config.py
2019-12-20 11:07:08 +10:00

10 lines
275 B
Python

from monkeytype.config import DefaultConfig
from monkeytype.typing import *
class MyConfig(DefaultConfig):
def type_rewriter(self):
rws = (RemoveEmptyContainers(),RewriteConfigDict(),RewriteLargeUnion(2))
return ChainedRewriter(rws)
CONFIG = MyConfig()