We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 480ccf9 commit 15fff62Copy full SHA for 15fff62
docs/_ext/github_links.py
@@ -41,10 +41,10 @@ def visit_ImportFrom(self, node):
41
file = module_name_to_file_path(node.module)
42
file_contents = file.read_text(encoding="utf-8")
43
locator = CodeLocator.from_code(file_contents)
44
- self.import_locations |= locator.import_locations
45
- self.import_locations |= {
46
- n: node.module for n in locator.node_line_numbers if "." not in n
47
- }
+ self.import_locations.update(locator.import_locations)
+ self.import_locations.update(
+ {n: node.module for n in locator.node_line_numbers if "." not in n}
+ )
48
else:
49
self.import_locations[alias.name] = ("." * node.level) + (
50
node.module or ""
0 commit comments