diff --git a/prometheus_aioexporter/script.py b/prometheus_aioexporter/script.py index f843bf6..5b22d4d 100644 --- a/prometheus_aioexporter/script.py +++ b/prometheus_aioexporter/script.py @@ -1,14 +1,12 @@ """Run a web server providing a Prometheus metrics endpoint.""" import argparse +from collections.abc import Iterable import logging import ssl -import sys -from collections.abc import Iterable from ssl import SSLContext -from typing import ( - IO, -) +import sys +from typing import IO from aiohttp.web import Application from prometheus_client import ( diff --git a/prometheus_aioexporter/web.py b/prometheus_aioexporter/web.py index 08f4b22..b67beac 100644 --- a/prometheus_aioexporter/web.py +++ b/prometheus_aioexporter/web.py @@ -7,7 +7,6 @@ ) from ssl import SSLContext from textwrap import dedent -from typing import Optional from aiohttp.web import ( Application, diff --git a/tests/script_test.py b/tests/script_test.py index ae03e48..32bbe2f 100644 --- a/tests/script_test.py +++ b/tests/script_test.py @@ -1,5 +1,5 @@ -import logging from io import StringIO +import logging from ssl import SSLContext from unittest import mock