Merge pull request #4329 from Blucknote/patch-1
Python 3.8 typing compatibility
This commit is contained in:
commit
2e604233fd
|
@ -5,7 +5,7 @@ from typing_extensions import Literal
|
||||||
from inflection import underscore
|
from inflection import underscore
|
||||||
from modules.processing import StableDiffusionProcessingTxt2Img, StableDiffusionProcessingImg2Img
|
from modules.processing import StableDiffusionProcessingTxt2Img, StableDiffusionProcessingImg2Img
|
||||||
from modules.shared import sd_upscalers, opts, parser
|
from modules.shared import sd_upscalers, opts, parser
|
||||||
from typing import List
|
from typing import Dict, List
|
||||||
|
|
||||||
API_NOT_ALLOWED = [
|
API_NOT_ALLOWED = [
|
||||||
"self",
|
"self",
|
||||||
|
@ -193,8 +193,8 @@ FlagsModel = create_model("Flags", **flags)
|
||||||
|
|
||||||
class SamplerItem(BaseModel):
|
class SamplerItem(BaseModel):
|
||||||
name: str = Field(title="Name")
|
name: str = Field(title="Name")
|
||||||
aliases: list[str] = Field(title="Aliases")
|
aliases: List[str] = Field(title="Aliases")
|
||||||
options: dict[str, str] = Field(title="Options")
|
options: Dict[str, str] = Field(title="Options")
|
||||||
|
|
||||||
class UpscalerItem(BaseModel):
|
class UpscalerItem(BaseModel):
|
||||||
name: str = Field(title="Name")
|
name: str = Field(title="Name")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user