Skip to content

tqdm.n not set when disabled #438

@lichray

Description

@lichray

With tqdm(disable=True), updating the progress bar causes

*** AttributeError: 'tqdm' object has no attribute 'n'

self.n should be initialized to initial before detecting disable, otherwise it's inconvenient to produce a mock object for the progress bar.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions