docs: fix missing arguments in get_metrics() (#19629)

This commit is contained in:
invisprints 2024-03-15 08:50:42 +08:00 committed by GitHub
parent afff598dc9
commit 75553845c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ if you are using a logger. These defaults can be customized by overriding the
class CustomProgressBar(TQDMProgressBar): class CustomProgressBar(TQDMProgressBar):
def get_metrics(self, *args, **kwargs): def get_metrics(self, *args, **kwargs):
# don't show the version number # don't show the version number
items = super().get_metrics() items = super().get_metrics(*args, **kwargs)
items.pop("v_num", None) items.pop("v_num", None)
return items return items