Skip to content

Commit

Permalink
temp: fix unrelated mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering committed Oct 27, 2024
1 parent 480ebfb commit 23dd646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/poetry/console/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ 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.packages.package import ( # type: ignore[attr-defined]
AUTHOR_REGEX,
)
from poetry.core.utils.helpers import combine_unicode

author = combine_unicode(author or default)
Expand Down
2 changes: 1 addition & 1 deletion src/poetry/layouts/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Any

from packaging.utils import canonicalize_name
from poetry.core.packages.package import AUTHOR_REGEX
from poetry.core.packages.package import AUTHOR_REGEX # type: ignore[attr-defined]
from poetry.core.utils.helpers import module_name
from tomlkit import inline_table
from tomlkit import loads
Expand Down

0 comments on commit 23dd646

Please sign in to comment.