Skip to content

Commit

Permalink
chore: update poetry-core and fix mypy (python-poetry#9799)
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering authored and Secrus committed Oct 27, 2024
1 parent a5829fd commit 8a4e9b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/poetry/console/commands/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

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,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
Expand Down

0 comments on commit 8a4e9b8

Please sign in to comment.