Skip to content

Commit 23dd646

Browse files
committed
temp: fix unrelated mypy
1 parent 480ebfb commit 23dd646

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/poetry/console/commands/init.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ def _format_requirements(self, requirements: list[dict[str, str]]) -> Requiremen
492492

493493
@staticmethod
494494
def _validate_author(author: str, default: str) -> str | None:
495-
from poetry.core.packages.package import AUTHOR_REGEX
495+
from poetry.core.packages.package import ( # type: ignore[attr-defined]
496+
AUTHOR_REGEX,
497+
)
496498
from poetry.core.utils.helpers import combine_unicode
497499

498500
author = combine_unicode(author or default)

src/poetry/layouts/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Any
66

77
from packaging.utils import canonicalize_name
8-
from poetry.core.packages.package import AUTHOR_REGEX
8+
from poetry.core.packages.package import AUTHOR_REGEX # type: ignore[attr-defined]
99
from poetry.core.utils.helpers import module_name
1010
from tomlkit import inline_table
1111
from tomlkit import loads

0 commit comments

Comments
 (0)