Skip to content

Commit

Permalink
tomlkit type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed May 14, 2023
1 parent 284870b commit 0c6d133
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

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

7 changes: 2 additions & 5 deletions src/poetry/layouts/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,10 @@ def get_package_include(self) -> InlineTable | None:
return None

include = parts[0]
package.append("include", include) # type: ignore[no-untyped-call]
package.append("include", include)

if self.basedir != Path():
package.append( # type: ignore[no-untyped-call]
"from",
self.basedir.as_posix(),
)
package.append("from", self.basedir.as_posix())
else:
if include == self._project:
# package include and package name are the same,
Expand Down

0 comments on commit 0c6d133

Please sign in to comment.