dfm / dfm/emcee

Add set_description to `pbar._NoOpPBar`

Open Beginner friendly
#476 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.6k
Forks
440
PR merge metrics
No merged PRs in 30d

Description

I'm interested in using the set_description method of a tqdm progressbar. If I do that it may make sense to add an empty set_description method to the emcee.pbar._NoOpPBar, so there's no issue if I try to call the method on a dummy placeholder object.

Would such an addition be welcomed, or would you prefer if I handle the absence of the method in user space?

Contributor guide

Open the contributing guide

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.

Research direction

Search the emcee source for pbar._NoOpPBar and inspect its existing placeholder methods alongside the progress-bar interface. Add the empty set_description method and verify that calling it on the dummy object completes without error; the issue does not mention a test file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.