mirror of
https://github.com/encounter/dtk-template.git
synced 2025-12-17 00:47:23 +00:00
Update category typings in tools/project.py
This commit is contained in:
@@ -767,11 +767,11 @@ def generate_build_ninja(
|
|||||||
n.newline()
|
n.newline()
|
||||||
|
|
||||||
def write_custom_step(step: str, prev_step: Optional[str] = None) -> None:
|
def write_custom_step(step: str, prev_step: Optional[str] = None) -> None:
|
||||||
implicit: List[str | Path] = []
|
implicit: List[Union[str, Path]] = []
|
||||||
if config.custom_build_steps and step in config.custom_build_steps:
|
if config.custom_build_steps and step in config.custom_build_steps:
|
||||||
n.comment(f"Custom build steps ({step})")
|
n.comment(f"Custom build steps ({step})")
|
||||||
for custom_step in config.custom_build_steps[step]:
|
for custom_step in config.custom_build_steps[step]:
|
||||||
outputs = cast(List[str | Path], custom_step.get("outputs"))
|
outputs = cast(List[Union[str, Path]], custom_step.get("outputs"))
|
||||||
|
|
||||||
if isinstance(outputs, list):
|
if isinstance(outputs, list):
|
||||||
implicit.extend(outputs)
|
implicit.extend(outputs)
|
||||||
@@ -1589,7 +1589,7 @@ def generate_objdiff_config(
|
|||||||
"build_ctx": True,
|
"build_ctx": True,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
category_opt: List[str] | str = obj.options["progress_category"]
|
category_opt: Union[List[str], str] = obj.options["progress_category"]
|
||||||
if isinstance(category_opt, list):
|
if isinstance(category_opt, list):
|
||||||
progress_categories.extend(category_opt)
|
progress_categories.extend(category_opt)
|
||||||
elif category_opt is not None:
|
elif category_opt is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user