This commit is contained in:
Devaev Maxim 2021-06-08 22:22:28 +03:00
parent 2724a14eab
commit 240f3e095b
3 changed files with 5 additions and 3 deletions

View File

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

View File

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

View File

@ -1,2 +1,4 @@
pyghmi
spidev
types-PyYAML
types-aiofiles