anki/monkeytype_config.py

10 lines
275 B
Python
Raw Normal View History

2019-12-19 04:47:24 +01:00
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()