Skip to content

Commit 71dcac2

Browse files
committed
style: tidy
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent b91280d commit 71dcac2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

cyclonedx/validation/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def make_schemabased_validator(output_format: OutputFormat, schema_version: 'Sch
110110
Raises error when no instance could be made.
111111
"""
112112
if TYPE_CHECKING: # pragma: no cover
113-
from typing import Type
114113
Validator: type[BaseSchemabasedValidator] # noqa:N806
115114
if OutputFormat.JSON is output_format:
116115
from .json import JsonValidator as Validator

tests/test_validation_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# SPDX-License-Identifier: Apache-2.0
1616
# Copyright (c) OWASP Foundation. All Rights Reserved.
1717

18+
from collections.abc import Generator
1819
from glob import iglob
1920
from itertools import chain
2021
from os.path import join
21-
from collections.abc import Generator
2222
from unittest import TestCase
2323

2424
from ddt import data, ddt, idata, unpack

typings/sortedcontainers.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
# The contents of this file were obtained from
44
# https://github.com/althonos/python-sortedcontainers/blob/d0a225d7fd0fb4c54532b8798af3cbeebf97e2d5/sortedcontainers/sortedset.pyi
55

6-
from collections.abc import Callable, Iterable, MutableSet, Sequence
6+
from collections.abc import Callable, Hashable, Iterable, MutableSet, Sequence
77
from typing import Any, Optional, TypeVar, Union, overload # Iterator,; Tuple,; Type, Set
8-
from collections.abc import Hashable
98

109
# --- Global
1110

0 commit comments

Comments
 (0)