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:
|
class ScriptCallback:
|
||||||
script: str
|
script: str
|
||||||
callback: any
|
callback: any
|
||||||
name: str = None
|
name: str = "unnamed"
|
||||||
|
|
||||||
|
|
||||||
def add_callback(callbacks, fun, *, name=None, category='unknown', filename=None):
|
def add_callback(callbacks, fun, *, name=None, category='unknown', filename=None):
|
||||||
|
|
Loading…
Reference in New Issue