Private GIT

Skip to content
Snippets Groups Projects
Commit 3272dd35 authored by Sean Rees's avatar Sean Rees
Browse files

Remove a type-hint where the output is either a data structure or None

parent 48926cfb
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,9 @@ import time ...@@ -16,9 +16,9 @@ import time
from typing import Callable from typing import Callable
from libpurecool import dyson from libpurecool import dyson # type: ignore[import]
from libpurecool import dyson_pure_state from libpurecool import dyson_pure_state # type: ignore[import]
import prometheus_client import prometheus_client # type: ignore[import]
# Rationale: # Rationale:
# too-many-instance-attributes: refers to Metrics. This is an intentional design choice. # too-many-instance-attributes: refers to Metrics. This is an intentional design choice.
...@@ -161,7 +161,7 @@ def _sleep_forever() -> None: ...@@ -161,7 +161,7 @@ def _sleep_forever() -> None:
except KeyboardInterrupt: except KeyboardInterrupt:
break break
def _read_config(filename) -> DysonLinkCredentials: def _read_config(filename):
"""Reads configuration file. Returns DysonLinkCredentials or None on error.""" """Reads configuration file. Returns DysonLinkCredentials or None on error."""
config = configparser.ConfigParser() config = configparser.ConfigParser()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment