Annotate these attributes
This commit is contained in:
1 parent
7d9205d4ae
commit
b1f95b4bf9
3 files changed
+8
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user