add arg hints to schedulers

This commit is contained in:
Damien Elmes 2019-12-19 13:47:24 +10:00
parent 6ecfff56c5
commit a02d203604
2 changed files with 16 additions and 0 deletions

7
monkeytype.txt Normal file
View File

@ -0,0 +1,7 @@
Gather data via unit tests:
$ monkeytype run -m nose
Then apply types to a file:
$ monkeytype apply anki.sched

9
monkeytype_config.py Normal file
View File

@ -0,0 +1,9 @@
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()