mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
lint fix
This commit is contained in:
parent
2724a14eab
commit
240f3e095b
@ -85,7 +85,7 @@ async def wait_infinite() -> None:
|
||||
await asyncio.get_event_loop().create_future()
|
||||
|
||||
|
||||
async def wait_first(*aws: Awaitable) -> Tuple[Set[asyncio.Future], Set[asyncio.Future]]:
|
||||
async def wait_first(*aws: Awaitable) -> Tuple[Set[asyncio.Task], Set[asyncio.Task]]:
|
||||
return (await asyncio.wait(list(aws), return_when=asyncio.FIRST_COMPLETED))
|
||||
|
||||
|
||||
|
||||
@ -46,8 +46,8 @@ class _YamlLoader(yaml.SafeLoader):
|
||||
super().__init__(yaml_file)
|
||||
self.__root = os.path.dirname(yaml_file.name)
|
||||
|
||||
def include(self, node: yaml.nodes.Node) -> Any:
|
||||
path = os.path.join(self.__root, self.construct_scalar(node))
|
||||
def include(self, node: yaml.nodes.ScalarNode) -> Any:
|
||||
path = os.path.join(self.__root, str(self.construct_scalar(node)))
|
||||
return load_yaml_file(path)
|
||||
|
||||
|
||||
|
||||
@ -1,2 +1,4 @@
|
||||
pyghmi
|
||||
spidev
|
||||
types-PyYAML
|
||||
types-aiofiles
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user