Skip to content

Fix import on Python 3.10/3.11; add tests and CI (0.2.2) - #1

Merged
devpparikh merged 1 commit into
mainfrom
py310-compat-and-tests
Nov 3, 2026
Merged

devpparikh merged 1 commit into
mainfrom
py310-compat-and-tests

Conversation

@devpparikh

Copy link
Copy Markdown
Owner
  • nn.py used 3.12-only f-string syntax; import learngrad.nn raised SyntaxError on 3.10/3.11 (verified in Docker) despite requires-python >=3.10
  • 24 tests: finite-difference gradient checks for every op, MLP shape/repr, optimizers fitting a linear model; CI matrix 3.10-3.13
  • Version 0.2.2, homepage URL updated to the renamed account

nn.py used f-string syntax that only parses on 3.12+, so the package
(requires-python >=3.10) failed to import on 3.10 and 3.11. Adds 24
tests (finite-difference gradient checks, MLP, optimizers) run on
3.10-3.13, and removes a dead module-level __repr__.
@devpparikh
devpparikh merged commit 6eda1a3 into main Nov 3, 2026
4 checks passed
@devpparikh
devpparikh deleted the py310-compat-and-tests branch November 3, 2026 05:48
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.

1 participant