Re-sort imports.

This commit is contained in:
Felix Fontein
2025-12-25 21:58:57 +01:00
parent 74e9abf1f6
commit 9cbf9fc6ec
109 changed files with 86 additions and 219 deletions

View File

@@ -36,7 +36,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
import datetime # pragma: no cover
@@ -416,8 +415,8 @@ def get_certificate_argument_spec() -> ArgumentSpec:
__all__ = (
"CertificateError",
"CertificateBackend",
"CertificateError",
"CertificateProvider",
"get_certificate_argument_spec",
)

View File

@@ -21,7 +21,6 @@ from ansible_collections.community.crypto.plugins.module_utils._crypto.module_ba
CertificateProvider,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover

View File

@@ -37,7 +37,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
get_now_datetime,
)
if t.TYPE_CHECKING:
import datetime # pragma: no cover

View File

@@ -40,7 +40,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
get_relative_time_option,
)
if t.TYPE_CHECKING:
import datetime # pragma: no cover

View File

@@ -34,7 +34,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
get_relative_time_option,
)
if t.TYPE_CHECKING:
import datetime # pragma: no cover

View File

@@ -26,7 +26,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover

View File

@@ -47,7 +47,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
from cryptography.hazmat.primitives.asymmetric.types import ( # pragma: no cover
@@ -926,8 +925,8 @@ def get_csr_argument_spec() -> ArgumentSpec:
__all__ = (
"CertificateSigningRequestError",
"CertificateSigningRequestBackend",
"select_backend",
"CertificateSigningRequestError",
"get_csr_argument_spec",
"select_backend",
)

View File

@@ -30,7 +30,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
from cryptography.hazmat.primitives.asymmetric.types import ( # pragma: no cover

View File

@@ -36,7 +36,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
from cryptography.hazmat.primitives.asymmetric.types import ( # pragma: no cover
@@ -655,8 +654,8 @@ def get_privatekey_argument_spec() -> ArgumentSpec:
__all__ = (
"PrivateKeyError",
"PrivateKeyBackend",
"select_backend",
"PrivateKeyError",
"get_privatekey_argument_spec",
"select_backend",
)

View File

@@ -30,7 +30,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
)
from ansible_collections.community.crypto.plugins.module_utils._io import load_file
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
from cryptography.hazmat.primitives.asymmetric.types import ( # pragma: no cover
@@ -287,8 +286,8 @@ def get_privatekey_argument_spec() -> ArgumentSpec:
__all__ = (
"PrivateKeyError",
"PrivateKeyConvertBackend",
"select_backend",
"PrivateKeyError",
"get_privatekey_argument_spec",
"select_backend",
)

View File

@@ -33,7 +33,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
from cryptography.hazmat.primitives.asymmetric.types import ( # pragma: no cover
@@ -336,8 +335,8 @@ def select_backend(
__all__ = (
"PrivateKeyConsistencyError",
"PrivateKeyParseError",
"PrivateKeyInfoRetrieval",
"PrivateKeyParseError",
"get_privatekey_info",
"select_backend",
)

View File

@@ -21,7 +21,6 @@ from ansible_collections.community.crypto.plugins.module_utils._cryptography_dep
assert_required_cryptography_version,
)
if t.TYPE_CHECKING:
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
from cryptography.hazmat.primitives.asymmetric.types import ( # pragma: no cover
@@ -178,8 +177,8 @@ def select_backend(
__all__ = (
"PublicKeyParseError",
"PublicKeyInfoRetrieval",
"PublicKeyParseError",
"get_publickey_info",
"select_backend",
)