Skip to content

Commit 34c30c8

Browse files
committed
fix: add Optional type annotations to set_import_settings parameters
1 parent 7306e91 commit 34c30c8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Server/src/cli/commands/texture.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,9 +601,10 @@ def delete(path: str, force: bool):
601601
@click.option("--readable/--no-readable", default=None, help="Read/Write enabled")
602602
@click.option("--as-sprite", is_flag=True, help="Shorthand: set texture type to Sprite with defaults")
603603
@handle_unity_errors
604-
def set_import_settings(path: str, texture_type: str, sprite_mode: str, sprite_ppu: float,
605-
max_size: str, compression: str, generate_mipmaps: bool,
606-
srgb: bool, readable: bool, as_sprite: bool):
604+
def set_import_settings(path: str, texture_type: Optional[str], sprite_mode: Optional[str],
605+
sprite_ppu: Optional[float], max_size: Optional[str],
606+
compression: Optional[str], generate_mipmaps: Optional[bool],
607+
srgb: Optional[bool], readable: Optional[bool], as_sprite: bool):
607608
"""Change import settings on an existing texture.
608609
609610
\b

0 commit comments

Comments
 (0)