Merge pull request #8 from cdb-boop/main
Fix issue #7 (union type hints for python 3.9.18)
This commit is contained in:
@@ -54,4 +54,3 @@ Download, browse and delete models in ComfyUI.
|
|||||||
### Known Issues
|
### Known Issues
|
||||||
|
|
||||||
- Pinch to Zoom can cause an invisible scrolling bug.
|
- 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?)
|
|
||||||
|
|||||||
@@ -6,10 +6,17 @@ class Rule:
|
|||||||
key: any
|
key: any
|
||||||
value_default: any
|
value_default: any
|
||||||
value_type: type
|
value_type: type
|
||||||
value_min: int | float | None
|
value_min: any # int | float | None
|
||||||
value_max: 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.key = key
|
||||||
self.value_default = value_default
|
self.value_default = value_default
|
||||||
self.value_type = value_type
|
self.value_type = value_type
|
||||||
|
|||||||
@@ -3503,6 +3503,8 @@ class ModelManager extends ComfyDialog {
|
|||||||
|
|
||||||
this.#modelTab.updateModelGrid();
|
this.#modelTab.updateModelGrid();
|
||||||
await this.#tryHideModelInfo(false);
|
await this.#tryHideModelInfo(false);
|
||||||
|
|
||||||
|
document.getElementById("comfy-refresh-button")?.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user