chore: lower base python
This commit is contained in:
@@ -4,9 +4,8 @@ import shutil
|
||||
import subprocess
|
||||
import typing
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .tld_list import TLDList
|
||||
from .word_list import WordList
|
||||
from .tld_list import TLDList
|
||||
from .word_list import WordList
|
||||
|
||||
|
||||
class FactoryError(Exception):
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@ import enum
|
||||
import logging
|
||||
import typing
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .params import Parameters
|
||||
from .params import Parameters
|
||||
|
||||
|
||||
class TermColor(enum.StrEnum):
|
||||
|
||||
@@ -22,7 +22,7 @@ class Parameters:
|
||||
tld_list_uri: str = "https://publicsuffix.org/list/public_suffix_list.dat"
|
||||
|
||||
@classmethod
|
||||
def from_namespace(cls, args: argparse.Namespace) -> Parameters:
|
||||
def from_namespace(cls, args: argparse.Namespace) -> "Parameters":
|
||||
return Parameters(**vars(args))
|
||||
|
||||
|
||||
@@ -90,7 +90,6 @@ def parse_parameters(args: typing.Sequence[str]) -> Parameters:
|
||||
default_values = Parameters()
|
||||
parser = argparse.ArgumentParser(
|
||||
PKG_NAME,
|
||||
suggest_on_error=True,
|
||||
)
|
||||
__add_arg_int(
|
||||
parser,
|
||||
|
||||
@@ -5,8 +5,7 @@ import typing
|
||||
import requests
|
||||
import unidecode
|
||||
|
||||
if typing.TYPE_CHECKING:
|
||||
from .cache import Cache
|
||||
from .cache import Cache
|
||||
|
||||
|
||||
class TLDError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user