diff options
author | vuko <vuko@hackerspace.pl> | 2021-01-02 22:30:39 +0100 |
---|---|---|
committer | vuko <vuko@hackerspace.pl> | 2021-01-02 22:30:39 +0100 |
commit | 8c3a6834707634e227e517b131291539ace0b750 (patch) | |
tree | 6dd786164c81db1cdc3a9b087cd70e9681743116 | |
parent | 5b11cb4e699a79be463cd7f93e612801edcf875c (diff) | |
download | checkinator-8c3a6834707634e227e517b131291539ace0b750.tar.gz checkinator-8c3a6834707634e227e517b131291539ace0b750.tar.bz2 checkinator-8c3a6834707634e227e517b131291539ace0b750.zip |
fix some types
-rw-r--r-- | at/webapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/at/webapp.py b/at/webapp.py index c809202..a9d9949 100644 --- a/at/webapp.py +++ b/at/webapp.py @@ -5,7 +5,7 @@ from at.dhcp import DhcpdUpdater from pathlib import Path import yaml import os -from typing import Tuple +from typing import Tuple, Optional import grpc from at.tracker_pb2 import ClientsRequest @@ -32,7 +32,7 @@ class DevicesApi: ) for d in devices.clients } - def get_device(self, ip: str) -> Tuple[str, str]: + def get_device(self, ip: str) -> Tuple[Optional[str], Optional[str]]: devices = self._api.GetClients(ClientsRequest()) for device in devices.clients: if device.ip_address == ip: |