Skip to content

Bar format is str but should be Optional[str] in ignite.contrib.handlers.tqdm_logger.ProgressBar #2540

@yohan-pg

Description

@yohan-pg

🐛 Bug description

ignite.contrib.handlers.tqdm_logger.ProgressBar can accept None in the bar_format initialization argument (as documented), but this is not reflected in the type annotation.

bar_format: str = "{desc}[{n_fmt}/{total_fmt}] {percentage:3.0f}%|{bar}{postfix} [{elapsed}<{remaining}]",

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions