Skip to content

Note Python 3.15 lazy imports - #434

Merged
stefanv merged 2 commits into
scientific-python:mainfrom
jarrodmillman:spec1-py3.15
Sep 28, 2026
Merged

stefanv merged 2 commits into
scientific-python:mainfrom
jarrodmillman:spec1-py3.15

Conversation

@jarrodmillman

Copy link
Copy Markdown
Member

See #413 and #433.

@jarrodmillman

Copy link
Copy Markdown
Member Author

Waiting on #435.

stefanv pushed a commit that referenced this pull request Sep 26, 2026
See scientific-python/scientific-python.org#876

This fixes this error
```
2:15:45 PM: Error: error building site: "/opt/build/build/themes/scientific-python-hugo-theme/layouts/partials/_decorators/article.html:4:1": parse of template failed: template: _partials/_decorators/article.html:4: function "inner" not defined
```
that we are getting on #434.

Now we are getting this error
```
2:31:02 PM:   ✖ FAIL fragment-check public/news/index.html --> #discourse-comments
2:31:02 PM:   | operator: fragment-check
2:31:02 PM:   | expected: id="discourse-comments"
2:31:02 PM:   |       at: public/news/index.html:134:79 <a href="#discourse-comments">...</a>
```
which I am hoping something like
scientific-python/scientific-python-hugo-theme#722
will fix.

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jarrodmillman! This reads well to me, hopefully the rebase will resolve the netlify error, too.

@rossbar rossbar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though the deploy preview is still broken, +1 for the policy. Explicit lazy imports are a nice feature, but the implicit lazy importing already adopted in many libraries (including networkx) is a really nice feature. +1 for continue support of lazy loader while keeping a finger on the pulse of lazy importing in Python proper!

@stefanv

stefanv commented Sep 28, 2026

Copy link
Copy Markdown
Member

We've moved over to Lychee in another PR; should update this repo too.

@stefanv
stefanv merged commit 7d99f8e into scientific-python:main Sep 28, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants