Skip to content

Commit cb51939

Browse files
Update pylint/pyreverse/inspector.py
1 parent 3d61b62 commit cb51939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/pyreverse/inspector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def compute_module(self, context_name: str, mod_path: str) -> bool:
304304
"""Should the module be added to dependencies ?"""
305305
package_dir = os.path.dirname(self.project.path)
306306
if context_name == mod_path:
307-
return True
307+
return False
308308
# astroid does return a boolean but is not typed correctly yet
309309

310310
return astroid.modutils.module_in_path(mod_path, (package_dir,)) # type: ignore[no-any-return]

0 commit comments

Comments
 (0)