add arg hints to schedulers
This commit is contained in:
parent
6ecfff56c5
commit
a02d203604
7
monkeytype.txt
Normal file
7
monkeytype.txt
Normal 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
9
monkeytype_config.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user