diff --git a/src/poetry/core/spdx/helpers.py b/src/poetry/core/spdx/helpers.py index 00d4bc6ea..fdcdaa44b 100644 --- a/src/poetry/core/spdx/helpers.py +++ b/src/poetry/core/spdx/helpers.py @@ -17,7 +17,7 @@ def license_by_id(identifier: str) -> License: ) -@functools.lru_cache() +@functools.lru_cache def _load_licenses() -> dict[str, License]: licenses = {} licenses_file = os.path.join(os.path.dirname(__file__), "data", "licenses.json") diff --git a/tests/integration/test_pep517.py b/tests/integration/test_pep517.py index dbf9f879f..9be6308ec 100644 --- a/tests/integration/test_pep517.py +++ b/tests/integration/test_pep517.py @@ -1,7 +1,5 @@ from __future__ import annotations -import sys - from pathlib import Path from typing import TYPE_CHECKING diff --git a/tests/masonry/test_api.py b/tests/masonry/test_api.py index 5eca036d0..49b25000f 100644 --- a/tests/masonry/test_api.py +++ b/tests/masonry/test_api.py @@ -1,8 +1,6 @@ from __future__ import annotations import os -import platform -import sys import zipfile from contextlib import contextmanager @@ -10,8 +8,6 @@ from typing import TYPE_CHECKING from typing import Iterator -import pytest - from poetry.core import __version__ from poetry.core.masonry import api from poetry.core.utils.helpers import temporary_directory