Slide 14
Slide 14 text
Methodology
March 1, 2017
14
• Started with the strictest annotations available in MyPy
• Progressively weakened innermost type annotations
• (int|str|...) -> Any
• Container[Any*] -> Any
Examples:
def hashtags(jr : Dict[str, List[Tuple[int, str]]]) -> Tuple[int, List[str]]:
def hashtags(jr : Dict[str, List[Any]]) -> Tuple[int, Any]:
def hashtags(jr : Dict[str, Any]) -> Any: