Skip to content

Commit 626f5e7

Browse files
simplify typing
- connsider `local_config["readme"]` as `str | Iterable[str]` in sdist
1 parent c9cbc9b commit 626f5e7

File tree

1 file changed

+2
-2
lines changed
  • src/poetry/core/masonry/builders

1 file changed

+2
-2
lines changed

src/poetry/core/masonry/builders/sdist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ def find_files_to_add(self, exclude_build: bool = False) -> set[BuildIncludeFile
333333

334334
# add readme files if it is specified
335335
if "readme" in self._poetry.local_config:
336-
r: str | Path | Iterable[str | Path] = self._poetry.local_config["readme"]
337-
if isinstance(r, (str, Path)):
336+
r: str | Iterable[str] = self._poetry.local_config["readme"]
337+
if isinstance(r, str):
338338
additional_files.add(r)
339339
else:
340340
additional_files.update(r)

0 commit comments

Comments
 (0)