Corrected interface
This commit is contained in:
parent
cf2379c5ec
commit
93ff82c2bb
2 changed files with 2 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ class State(ABC):
|
|||
pass
|
||||
|
||||
@abstractmethod
|
||||
def read_dict_keys(self, elem: Element) -> Optional[List[Any]]:
|
||||
def read_dict_keys(self, elem: Element) -> Optional[List[Element]]:
|
||||
"""
|
||||
Reads labels of outgoing edges starting in given node.
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ class PyState(State):
|
|||
else:
|
||||
return self.edges[e][1]
|
||||
|
||||
def read_dict_keys(self, elem: Element) -> Optional[List[Any]]:
|
||||
def read_dict_keys(self, elem: Element) -> Optional[List[Element]]:
|
||||
if elem not in self.nodes and elem not in self.edges:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue