These attributes aren't optional

They just don't yet have a value.
This commit is contained in:
Peter Law
2020-07-26 12:11:34 +01:00
parent 86e0e16625
commit 0571e12617
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ class AbstractFilter(object):
class FilterWrapper(object):
name_wrapper_class: Optional[Type[NameWrapper]] = None
name_wrapper_class: Type[NameWrapper]
def __init__(self, wrapped_filter):
self._wrapped_filter = wrapped_filter

View File

@@ -26,7 +26,7 @@ def _merge_name_docs(names):
class AbstractNameDefinition(object):
start_pos: Optional[Tuple[int, int]] = None
string_name: Optional[str] = None
string_name: str
parent_context = None
tree_name = None
is_value_name = True