mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:52:02 +02:00
Added missing from typing imports. (#8724)
This commit is contained in:
@@ -5,6 +5,7 @@ import datetime
|
|||||||
import http.client as http_client
|
import http.client as http_client
|
||||||
import json
|
import json
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import Dict
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import socketserver
|
|||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import List
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
import OpenSSL
|
import OpenSSL
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import socket
|
|||||||
import socketserver
|
import socketserver
|
||||||
import threading
|
import threading
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import Set
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
"""Tests for AugeasParserNode classes"""
|
"""Tests for AugeasParserNode classes"""
|
||||||
|
from typing import List
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import mock
|
import mock
|
||||||
except ImportError: # pragma: no cover
|
except ImportError: # pragma: no cover
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
"""Test for certbot_apache._internal.http_01."""
|
"""Test for certbot_apache._internal.http_01."""
|
||||||
import unittest
|
import unittest
|
||||||
import errno
|
import errno
|
||||||
|
from typing import List
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import mock
|
import mock
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import glob
|
|||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import List
|
||||||
|
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
from certbot.compat import os
|
from certbot.compat import os
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
"""Test certbot._internal.display.completer."""
|
"""Test certbot._internal.display.completer."""
|
||||||
|
from typing import List
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import readline # pylint: disable=import-error
|
import readline # pylint: disable=import-error
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import contextlib
|
|||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import Callable, Dict, Union
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import mock
|
import mock
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import logging.handlers
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
from acme import messages
|
from acme import messages
|
||||||
from certbot import errors
|
from certbot import errors
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import sys
|
|||||||
import tempfile
|
import tempfile
|
||||||
import traceback
|
import traceback
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import List
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
import pytz
|
import pytz
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
import functools
|
import functools
|
||||||
import string
|
import string
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import List
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import mock
|
import mock
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
"""Tests for letsencrypt.plugins.selection"""
|
"""Tests for letsencrypt.plugins.selection"""
|
||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import List
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import mock
|
import mock
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
import socket
|
import socket
|
||||||
from socket import errno as socket_errors # type: ignore
|
from socket import errno as socket_errors # type: ignore
|
||||||
import unittest
|
import unittest
|
||||||
|
from typing import Dict, Set, Tuple
|
||||||
|
|
||||||
import josepy as jose
|
import josepy as jose
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user