Cleanup: resolve various pylint warnings from recent changes

This commit is contained in:
Campbell Barton
2025-10-07 09:15:20 +11:00
parent 77f5119f77
commit cc1a3f19b4
7 changed files with 15 additions and 19 deletions

View File

@@ -14,12 +14,6 @@ __all__ = (
"BakeOptions",
)
import bpy
from bpy.types import (
Context, Action, ActionSlot, ActionChannelbag,
Object, PoseBone, KeyingSet,
)
import contextlib
from dataclasses import dataclass
from typing import Iterable, Optional, Union, Iterator
@@ -28,6 +22,12 @@ from collections.abc import (
Sequence,
)
import bpy
from bpy.types import (
Context, Action, ActionSlot, ActionChannelbag,
Object, PoseBone, KeyingSet,
)
from rna_prop_ui import (
rna_idprop_value_to_python,
)
@@ -886,8 +886,7 @@ class AutoKeying:
"Retrieve the lock status for 4D rotation."
if bone.lock_rotations_4d:
return [bone.lock_rotation_w, *bone.lock_rotation]
else:
return [all(bone.lock_rotation)] * 4
return [all(bone.lock_rotation)] * 4
@classmethod
def keyframe_channels(