add funcs name/attribut to __dir__

This commit is contained in:
un-pogaz 2022-10-14 10:40:23 +02:00
parent 635acc9312
commit 3272643eca

View File

@ -894,6 +894,9 @@ class FormatterFuncsCaller():
e.is_internal = True e.is_internal = True
raise e raise e
def __dir__(self):
return list(set(object.__dir__(self) + [f+'_' for f in self.formatter.funcs.keys()]))
def call(self, name, *args): def call(self, name, *args):
formatter = self.formatter formatter = self.formatter
args = [str(a) for a in args] args = [str(a) for a in args]