Skip to content

Commit

Permalink
Add a docstring to get_expected_or_default following review
Browse files Browse the repository at this point in the history
See #5287
  • Loading branch information
Pierre-Sassoulas committed Nov 12, 2021
1 parent da4c8fe commit 0520fe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pylint/testutils/configuration_test.py
Expand Up @@ -22,6 +22,8 @@
def get_expected_or_default(
pyproject_toml_path: str, suffix: str, default: ConfigurationValue
) -> str:
"""Return the expected value from the file if it exists, or the given default."""

def get_path_according_to_suffix() -> Path:
path = Path(pyproject_toml_path)
return path.parent / f"{path.stem}.{suffix}"
Expand Down

0 comments on commit 0520fe4

Please sign in to comment.