diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-11-05 19:30:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 19:30:57 +0300 |
commit | ff805d8d0eb8e3de42f04747de0d1c7354491810 (patch) | |
tree | c6e557895ff3172bad42da469a6912ac718078a1 /modules/script_callbacks.py | |
parent | 44c5097375ae4cf40300c09473bb46cf6c5d6cb7 (diff) | |
parent | c3699d4fd185d5a7285c5519f9bb4b6fec236d9f (diff) |
Merge branch 'dev' into master
Diffstat (limited to 'modules/script_callbacks.py')
-rw-r--r-- | modules/script_callbacks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/script_callbacks.py b/modules/script_callbacks.py index c99695eb..9ed7ad21 100644 --- a/modules/script_callbacks.py +++ b/modules/script_callbacks.py @@ -1,7 +1,7 @@ import inspect
import os
from collections import namedtuple
-from typing import Optional, Dict, Any
+from typing import Optional, Any
from fastapi import FastAPI
from gradio import Blocks
@@ -258,7 +258,7 @@ def image_grid_callback(params: ImageGridLoopParams): report_exception(c, 'image_grid')
-def infotext_pasted_callback(infotext: str, params: Dict[str, Any]):
+def infotext_pasted_callback(infotext: str, params: dict[str, Any]):
for c in callback_map['callbacks_infotext_pasted']:
try:
c.callback(infotext, params)
@@ -449,7 +449,7 @@ def on_infotext_pasted(callback): """register a function to be called before applying an infotext.
The callback is called with two arguments:
- infotext: str - raw infotext.
- - result: Dict[str, any] - parsed infotext parameters.
+ - result: dict[str, any] - parsed infotext parameters.
"""
add_callback(callback_map['callbacks_infotext_pasted'], callback)
|