mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
add arg hints to schedulers
This commit is contained in:
parent
6ecfff56c5
commit
a02d203604
2 changed files with 16 additions and 0 deletions
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 a new issue