Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions .github/workflows/make-tutorials-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ jobs:
filter: blob:none
fetch-depth: 0

- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip" # caching pip dependencies
- name: Install dependencies for validation script
run: pip install .[registry]
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Execute validation script and create output directory
run: |
./tutorial-registry/validate.py --outdir=build
uvx hatch run registry:validate --outdir build

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion docs/extensions/typed_returns.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from sphinx.ext.napoleon import NumpyDocstring


def _process_return(lines: Iterable[str]) -> Generator[str, None, None]:
def _process_return(lines: Iterable[str]) -> Generator[str]:
for line in lines:
if m := re.fullmatch(r"(?P<param>\w+)\s+:\s+(?P<type>[\w.]+)", line):
yield f"-{m['param']} (:class:`~{m['type']}`)"
Expand Down
Loading
Loading