[#365] Change type hint for NetmapOperations.nodeinfo
#365
3 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ class NetmapParser:
|
|||
return snapshot
|
||||
|
||||
@staticmethod
|
||||
def node_info(output: dict) -> NodeNetmapInfo:
|
||||
def node_info(output: dict) -> NodeInfo:
|
||||
data_dict = {"attributes": {}}
|
||||
|
||||
for key, value in output.items():
|
||||
|
|
|
@ -4,7 +4,7 @@ from typing import List, Optional
|
|||
from frostfs_testlib.cli.frostfs_cli.cli import FrostfsCli
|
||||
from frostfs_testlib.cli.netmap_parser import NetmapParser
|
||||
from frostfs_testlib.resources.cli import CLI_DEFAULT_TIMEOUT
|
||||
from frostfs_testlib.storage.dataclasses.storage_object_info import NodeNetInfo, NodeNetmapInfo
|
||||
from frostfs_testlib.storage.dataclasses.storage_object_info import NodeInfo, NodeNetInfo, NodeNetmapInfo
|
||||
|
||||
from .. import interfaces
|
||||
|
||||
|
@ -86,7 +86,7 @@ class NetmapOperations(interfaces.NetmapInterface):
|
|||
trace: Optional[bool] = True,
|
||||
xhdr: Optional[dict] = None,
|
||||
timeout: Optional[str] = CLI_DEFAULT_TIMEOUT,
|
||||
) -> NodeNetmapInfo:
|
||||
) -> NodeInfo:
|
||||
"""
|
||||
Get target node info.
|
||||
"""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from typing import List, Optional
|
||||
|
||||
from frostfs_testlib.storage.dataclasses.storage_object_info import NodeNetInfo, NodeNetmapInfo
|
||||
from frostfs_testlib.storage.dataclasses.storage_object_info import NodeInfo, NodeNetInfo, NodeNetmapInfo
|
||||
|
||||
|
||||
class NetmapInterface(ABC):
|
||||
|
@ -50,7 +50,7 @@ class NetmapInterface(ABC):
|
|||
ttl: Optional[int] = None,
|
||||
xhdr: Optional[dict] = None,
|
||||
timeout: Optional[str] = None,
|
||||
) -> NodeNetmapInfo:
|
||||
) -> NodeInfo:
|
||||
"""
|
||||
Get target node info.
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue