Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

`mean` method is incomplete / truncated

Open Beginner friendly
#68 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Open leanpass/tensor.py and compare the incomplete mean method with the working sum implementation in the same file. Complete the backward closure analogously to sum, then return the new Tensor so callers no longer get None. Exercise mean on a small Tensor to confirm it runs without runtime errors.

Written by the indexing model from the issue text.

Description

bug

File: leanpass/tensor.py

The mean implementation in leanpass/tensor.py ends abruptly after defining the backward closure, leaving the method without a proper return statement and without completing the backward logic. This results in a None return and runtime errors when mean is used. Finish the implementation analogous to sum and ensure the method returns the new Tensor.

Filed automatically by ai-issue-scan.

Dominant language
Python
Stars
16
Forks
1
Avg merge
2d 8h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Terminay/leanpass

All issues in Terminay/leanpass

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.