1
0
forked from VimPlug/jedi

Annotate top level items mypy needs annotating

This commit is contained in:
Peter Law
2020-07-21 23:46:48 +01:00
parent f98a9f7999
commit 1418aada91
4 changed files with 12 additions and 5 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
from typing import Dict, Optional
from jedi.parser_utils import get_flow_branch_keyword, is_scope, get_parent_scope
from jedi.inference.recursion import execution_allowed
from jedi.inference.helpers import is_big_annoying_library
class Status(object):
lookup_table = {}
lookup_table: Dict[Optional[bool], 'Status'] = {}
def __init__(self, value, name):
def __init__(self, value: Optional[bool], name: str) -> None:
self._value = value
self._name = name
Status.lookup_table[value] = self