Cleanup: Python script formatting
- Double quotes for strings. - Trailing commas when wrapped lines.
This commit is contained in:
@@ -435,7 +435,7 @@ def call_handle_checked(
|
||||
fn: Callable[[bool, bool], Optional[str]],
|
||||
*,
|
||||
do_register: bool,
|
||||
all_users: bool
|
||||
all_users: bool,
|
||||
) -> Optional[str]:
|
||||
try:
|
||||
result = fn(do_register, all_users)
|
||||
|
||||
@@ -390,7 +390,7 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non
|
||||
"module loaded with no associated file, __path__={!r}, aborting!".format(
|
||||
getattr(mod, "__path__", None)
|
||||
),
|
||||
name=module_name
|
||||
name=module_name,
|
||||
)
|
||||
mod.__time__ = os.path.getmtime(mod_file)
|
||||
mod.__addon_enabled__ = False
|
||||
|
||||
@@ -31,7 +31,7 @@ def ui_draw_filter_register(
|
||||
ui_ignore_operator=None,
|
||||
ui_ignore_property=None,
|
||||
ui_ignore_menu=None,
|
||||
ui_ignore_label=None
|
||||
ui_ignore_label=None,
|
||||
):
|
||||
import bpy
|
||||
|
||||
|
||||
@@ -564,7 +564,7 @@ def smpte_from_seconds(time, *, fps=None, fps_base=None):
|
||||
return smpte_from_frame(
|
||||
time_to_frame(time, fps=fps, fps_base=fps_base),
|
||||
fps=fps,
|
||||
fps_base=fps_base
|
||||
fps_base=fps_base,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ def bake_action(
|
||||
obj,
|
||||
*,
|
||||
action, frames,
|
||||
bake_options: BakeOptions
|
||||
bake_options: BakeOptions,
|
||||
):
|
||||
"""
|
||||
:arg obj: Object to bake.
|
||||
|
||||
Reference in New Issue
Block a user