Forráskód Böngészése

Corrected interface

Andrei Bondarenko 4 éve
szülő
commit
93ff82c2bb
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      state/base.py
  2. 1 1
      state/pystate.py

+ 1 - 1
state/base.py

@@ -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.
 

+ 1 - 1
state/pystate.py

@@ -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