Merge pull request #8 from cdb-boop/main

Fix issue #7 (union type hints for python 3.9.18)
This commit is contained in:
Hayden
2024-04-21 15:42:28 +08:00
committed by GitHub
3 changed files with 12 additions and 4 deletions

View File

@@ -54,4 +54,3 @@ Download, browse and delete models in ComfyUI.
### Known Issues
- Pinch to Zoom can cause an invisible scrolling bug.
- After adding/renaming/deleting models, the webpage needs to be reloaded to update the model lists. (Can this be automated?)

View File

@@ -6,10 +6,17 @@ class Rule:
key: any
value_default: any
value_type: type
value_min: int | float | None
value_max: int | float | None
value_min: any # int | float | None
value_max: any # int | float | None
def __init__(self, key, value_default, value_type: type, value_min: int | float | None = None, value_max: int | float | None = None):
def __init__(
self,
key,
value_default,
value_type: type,
value_min: any = None, # int | float | None
value_max: any = None, # int | float | None
):
self.key = key
self.value_default = value_default
self.value_type = value_type

View File

@@ -3503,6 +3503,8 @@ class ModelManager extends ComfyDialog {
this.#modelTab.updateModelGrid();
await this.#tryHideModelInfo(false);
document.getElementById("comfy-refresh-button")?.click();
}
/**