Skip to content

Commit de95c6d

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ def find_files_to_add(self, exclude_build: bool = False) -> set[BuildIncludeFile
331331

332332
# add readme files if it is specified
333333
if "readme" in self._poetry.local_config:
334-
r: str | Path | Iterable[str | Path] = self._poetry.local_config["readme"]
335-
if isinstance(r, (str, Path)):
334+
r: str | Iterable[str] = self._poetry.local_config["readme"]
335+
if isinstance(r, str):
336336
additional_files.add(r)
337337
else:
338338
additional_files.update(r)

0 commit comments

Comments
 (0)