Skip to content

Commit

Permalink
docs: Fix docs build (#639)
Browse files Browse the repository at this point in the history
See failing run here
https://github.com/CQCL/guppylang/actions/runs/11782620057/job/32818047506

The problem was that `_GuppyDummy` was missing the `_sources` field, so
it didn't mock `_Guppy` correctly
  • Loading branch information
mark-koch authored Nov 12, 2024
1 parent 90d465d commit bd6011c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guppylang/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ class _GuppyDummy:
builds to mock the decorator.
"""

_sources = SourceMap()

def __call__(self, arg: PyFunc | GuppyModule) -> Any:
if isinstance(arg, GuppyModule):
return lambda f: f
Expand Down

0 comments on commit bd6011c

Please sign in to comment.