From a213bf7baedd177a3e988fe8fee7a270181d68c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Sun, 27 Oct 2024 12:49:12 +0100 Subject: [PATCH] chore: update poetry-core and fix mypy (#9799) --- poetry.lock | 2 +- src/poetry/console/commands/init.py | 2 +- src/poetry/layouts/layout.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7377ff56383..ee1c703304d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -983,7 +983,7 @@ develop = false type = "git" url = "https://github.com/python-poetry/poetry-core.git" reference = "main" -resolved_reference = "eb68b291ccbb1ff226e04cdd5a58acc6e6053c0a" +resolved_reference = "589ecb03f28b30d9a604dc13b51fba55f3981ef5" [[package]] name = "pre-commit" diff --git a/src/poetry/console/commands/init.py b/src/poetry/console/commands/init.py index b2cb367d7c1..b1244965fbf 100644 --- a/src/poetry/console/commands/init.py +++ b/src/poetry/console/commands/init.py @@ -492,8 +492,8 @@ def _format_requirements(self, requirements: list[dict[str, str]]) -> Requiremen @staticmethod def _validate_author(author: str, default: str) -> str | None: - from poetry.core.packages.package import AUTHOR_REGEX from poetry.core.utils.helpers import combine_unicode + from poetry.core.utils.patterns import AUTHOR_REGEX author = combine_unicode(author or default) diff --git a/src/poetry/layouts/layout.py b/src/poetry/layouts/layout.py index 1fbd897f4a8..4b1d42bf719 100644 --- a/src/poetry/layouts/layout.py +++ b/src/poetry/layouts/layout.py @@ -5,8 +5,8 @@ from typing import Any from packaging.utils import canonicalize_name -from poetry.core.packages.package import AUTHOR_REGEX from poetry.core.utils.helpers import module_name +from poetry.core.utils.patterns import AUTHOR_REGEX from tomlkit import inline_table from tomlkit import loads from tomlkit import table