fix return-value error reported by mypy
This commit is contained in:
parent
dc6e30d598
commit
64e0968159
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ import os
|
||||||
import traceback
|
import traceback
|
||||||
import types
|
import types
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import TYPE_CHECKING, Any, AsyncIterator, Callable, Dict, Iterator, List, Mapping, Optional
|
from typing import TYPE_CHECKING, Set, Any, AsyncIterator, Callable, Dict, Iterator, List, Mapping, Optional
|
||||||
|
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
|
|
@ -152,7 +152,7 @@ class Vertex:
|
||||||
return [edge for edge in self.edges if edge.target_id == self.id]
|
return [edge for edge in self.edges if edge.target_id == self.id]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def edges_source_names(self) -> List[str]:
|
def edges_source_names(self) -> Set[str | None]:
|
||||||
return {edge.source_handle.name for edge in self.edges}
|
return {edge.source_handle.name for edge in self.edges}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue