diff --git a/daphne/cli.py b/daphne/cli.py index 31cfe2d..675878e 100755 --- a/daphne/cli.py +++ b/daphne/cli.py @@ -1,8 +1,7 @@ import argparse import logging import sys - -from argparse import Namespace, ArgumentError +from argparse import ArgumentError, Namespace from typing import Union from .access import AccessLogGenerator @@ -16,6 +15,7 @@ DEFAULT_HOST = "127.0.0.1" DEFAULT_PORT = 8000 str_or_none = Union[None, str] + class CommandLineInterface(object): """ Acts as the main CLI entry point for running the server. diff --git a/tests/test_cli.py b/tests/test_cli.py index f946a82..fa9881c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,8 +1,8 @@ # coding: utf8 import logging -from unittest import TestCase from argparse import ArgumentError +from unittest import TestCase from daphne.cli import CommandLineInterface from daphne.endpoints import build_endpoint_description_strings as build