added type hinting for core.nodes

This commit is contained in:
Blake Harnden 2020-01-13 14:08:49 -08:00
parent 4e71759ac9
commit c0fcc91d10
10 changed files with 534 additions and 360 deletions

View file

@ -5,7 +5,7 @@ gRpc client for interfacing with CORE, when gRPC mode is enabled.
import logging
import threading
from contextlib import contextmanager
from typing import Any, Callable, Dict, List
from typing import Any, Callable, Dict, Generator, List
import grpc
import netaddr
@ -1144,7 +1144,7 @@ class CoreGrpcClient:
self.channel = None
@contextmanager
def context_connect(self) -> None:
def context_connect(self) -> Generator:
"""
Makes a context manager based connection to the server, will close after context ends.