change the default name for callback from None to "unnamed"
This commit is contained in:
parent
daa1b33247
commit
611faaddef
|
@ -121,7 +121,7 @@ class BeforeTokenCounterParams:
|
|||
class ScriptCallback:
|
||||
script: str
|
||||
callback: any
|
||||
name: str = None
|
||||
name: str = "unnamed"
|
||||
|
||||
|
||||
def add_callback(callbacks, fun, *, name=None, category='unknown', filename=None):
|
||||
|
|
Loading…
Reference in New Issue