typehint for payload wrong

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

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
testing

Research direction

Start at the definition of core.randomfiletree.iterative_gaussian_tree and inspect its payload type hint. Update the annotation so the callable returns a Generator of Path values, then verify that the function signature matches the issue's expected type.

Written by the indexing model from the issue text.

Description

typehint for core.randomfiletree.iterative_gaussian_tree -> payload is wrong.

Optional[Callable[[Path], Path]] = None

but expected is a callable that acts as a Generator

Optional[Callable[[Path], Generator[Path, None, None]]] = None

Dominant language
Python
Stars
34
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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 klieret/RandomFileTree

All issues in klieret/RandomFileTree

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.