Skip to content

Commit d8ff480

Browse files
dnicolodirgommers
authored andcommitted
MAINT: tweak doc strings and remove unnecessary assert
1 parent aeafaa8 commit d8ff480

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

mesonpy/__init__.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -880,19 +880,16 @@ def sdist(self, directory: Path) -> pathlib.Path:
880880
return sdist
881881

882882
def wheel(self, directory: Path) -> pathlib.Path:
883-
"""Generates a wheel (binary distribution) in the specified directory."""
883+
"""Generates a wheel in the specified directory."""
884884
self.build()
885885
builder = _WheelBuilder(self._metadata, self._manifest, self._is_pure, self._limited_api)
886-
file = builder.build(directory)
887-
assert isinstance(file, pathlib.Path)
888-
return file
886+
return builder.build(directory)
889887

890888
def editable(self, directory: Path) -> pathlib.Path:
889+
"""Generates an editable wheel in the specified directory."""
891890
self.build()
892891
builder = _WheelBuilder(self._metadata, self._manifest, self._is_pure, self._limited_api)
893-
file = builder.build_editable(directory, self._source_dir, self._build_dir, self._build_command, self._editable_verbose)
894-
assert isinstance(file, pathlib.Path)
895-
return file
892+
return builder.build_editable(directory, self._source_dir, self._build_dir, self._build_command, self._editable_verbose)
896893

897894

898895
@contextlib.contextmanager

0 commit comments

Comments
 (0)