summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-01-09 13:05:51 +0100
committerGitHub <noreply@github.com>2023-01-09 12:05:51 +0000
commite355324cefe0fa4ae7f4cd6c240fabf0bef94c1c (patch)
tree73f70e1624d052139f644a13ed87436bafa1573a /astroid/modutils.py
parente259af237ed140e7c15ad61483e92302b3e8ce14 (diff)
downloadastroid-git-e355324cefe0fa4ae7f4cd6c240fabf0bef94c1c.tar.gz
Some modifications for pep237 with pydocstringformatter (#1792)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r--astroid/modutils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py
index 74a9cd7d..1b5057f5 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -339,9 +339,10 @@ def file_info_from_modpath(
path: Sequence[str] | None = None,
context_file: str | None = None,
) -> spec.ModuleSpec:
- """given a mod path (i.e. split module / package name), return the
- corresponding file, giving priority to source file over precompiled
- file if it exists
+ """Given a mod path (i.e. split module / package name), return the
+ corresponding file.
+
+ Giving priority to source file over precompiled file if it exists.
:param modpath:
split module's name (i.e name of a module or package split