Skip to content

Commit

Permalink
fix linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Oct 2, 2023
1 parent 45c158d commit e140803
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

ingest:

runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions papyri/take2.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ class RefInfo(Node):
kind: str
path: str

def __post_init__(self):
if self.module is not None:
assert "." not in self.module, self.module

def __iter__(self):
assert isinstance(self.path, str)
return iter([self.module, self.version, self.kind, self.path])
Expand Down
2 changes: 1 addition & 1 deletion papyri/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ def replace_Directive(self, directive: Directive):
if target_qa is not None:
if target_qa.split(".")[0] == self.qa.split("."):
assert False, "local reference should have explicit versions"
module = target_qa.split(":")[0]
module = target_qa.split(":")[0].split(".")[0]
ri = RefInfo(
module=module,
version="*",
Expand Down

0 comments on commit e140803

Please sign in to comment.