Addon: fix mypy errors
This commit is contained in:
parent
2e4ada2ade
commit
0e682282f0
@ -197,7 +197,7 @@ def copy( # type: ignore
|
|||||||
*,
|
*,
|
||||||
relative_only: bool,
|
relative_only: bool,
|
||||||
packer_class=pack.Packer,
|
packer_class=pack.Packer,
|
||||||
**packer_kwargs: dict[Any, Any],
|
packer_kwargs: Optional[dict[Any, Any]] = None,
|
||||||
) -> PackThread:
|
) -> PackThread:
|
||||||
"""Use BAT to copy the given file and dependencies to the target location.
|
"""Use BAT to copy the given file and dependencies to the target location.
|
||||||
|
|
||||||
@ -210,6 +210,8 @@ def copy( # type: ignore
|
|||||||
if _running_packthread is not None:
|
if _running_packthread is not None:
|
||||||
raise RuntimeError("other packing operation already in progress")
|
raise RuntimeError("other packing operation already in progress")
|
||||||
|
|
||||||
|
if packer_kwargs is None:
|
||||||
|
packer_kwargs = {}
|
||||||
packer = packer_class(
|
packer = packer_class(
|
||||||
base_blendfile,
|
base_blendfile,
|
||||||
project,
|
project,
|
||||||
|
@ -301,9 +301,11 @@ class FLAMENCO_OT_submit_job(FlamencoOpMixin, bpy.types.Operator):
|
|||||||
target="/", # Target directory irrelevant for Shaman transfers.
|
target="/", # Target directory irrelevant for Shaman transfers.
|
||||||
exclusion_filter="", # TODO: get from GUI.
|
exclusion_filter="", # TODO: get from GUI.
|
||||||
relative_only=True, # TODO: get from GUI.
|
relative_only=True, # TODO: get from GUI.
|
||||||
api_client=self.get_api_client(context),
|
|
||||||
checkout_path=checkout_root,
|
|
||||||
packer_class=bat_shaman.Packer,
|
packer_class=bat_shaman.Packer,
|
||||||
|
packer_kwargs=dict(
|
||||||
|
api_client=self.get_api_client(context),
|
||||||
|
checkout_path=checkout_root,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
return checkout_root / blendfile.name # TODO: get relative to the checkout dir.
|
return checkout_root / blendfile.name # TODO: get relative to the checkout dir.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user