Skip to content

Commit ce2c62e

Browse files
authored
Apply suggestions from code review
1 parent e44a595 commit ce2c62e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/griffelib/src/griffe/_internal

packages/griffelib/src/griffe/_internal/finder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def _handle_editable_module(path: Path) -> list[_SP]:
483483
return [_SP(new_path)]
484484
if _match_pattern(path.name, _editable_setuptools_patterns):
485485
# Support for how 'setuptools' writes these files:
486-
# example line: `MAPPING = {'griffe': '/media/data/dev/griffelib/packages/griffe/src/griffe', 'briffe': '/media/data/dev/griffelib/src/briffe'}`.
486+
# example line: `MAPPING = {'griffe': '/media/data/dev/griffe/packages/griffelib/src/griffe', 'briffe': '/media/data/dev/griffe/src/briffe'}`.
487487
# with annotation: `MAPPING: dict[str, str] = {...}`.
488488
parsed_module = ast.parse(path.read_text(encoding="utf8"))
489489
for node in parsed_module.body:
@@ -497,7 +497,7 @@ def _handle_editable_module(path: Path) -> list[_SP]:
497497
return [_SP(Path(cst.value).parent) for cst in node.value.values if isinstance(cst, ast.Constant)] # type: ignore[arg-type]
498498
if _match_pattern(path.name, _editable_meson_python_patterns):
499499
# Support for how 'meson-python' writes these files:
500-
# example line: `install({'package', 'module1'}, '/media/data/dev/griffelib/build/cp311', ["path"], False)`.
500+
# example line: `install({'package', 'module1'}, '/media/data/dev/griffe/build/cp311', ["path"], False)`.
501501
# Compiled modules then found in the cp311 folder, under src/package.
502502
parsed_module = ast.parse(path.read_text(encoding="utf8"))
503503
for node in parsed_module.body:

0 commit comments

Comments
 (0)