Annotate these attributes

This commit is contained in:
Peter Law
2020-07-24 16:10:34 +01:00
parent 7d9205d4ae
commit b1f95b4bf9
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
from abc import abstractmethod
from inspect import Parameter
from typing import Optional, Tuple
from parso.tree import search_ancestor
@@ -24,8 +25,8 @@ def _merge_name_docs(names):
class AbstractNameDefinition(object):
start_pos = None
string_name = None
start_pos: Optional[Tuple[int, int]] = None
string_name: Optional[str] = None
parent_context = None
tree_name = None
is_value_name = True