You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classAnimatable(Protocol):
"""Protocol for objects that can be animated."""animation_data: bpy.types.AnimData# TODO(jonathan): Change to Optional when fake-bpy-module is updated
Ruff formatting
classAnimatable(Protocol):
"""Protocol for objects that can be animated."""animation_data: (
bpy.types.AnimData
) # TODO(jonathan): Change to Optional when fake-bpy-module is updated
Ruff 0.0.289 with line-length 100
I prefer Black formatting
The text was updated successfully, but these errors were encountered:
I can see how Black's formatting may seem better but Black's code exceeds the configured line width of 100, whereas Ruff's formatting stays in the limit.
Black is also a bit inconsistent here because it uses the same formatting as ruff if you change this to an assignment:
animation_data= (
bpy.types.AnimData
) # TODO(jonathan): Change to Optional when fake-bpy-module is updated
I propose that we stick to Ruff's layout because:
It is more consistent with other syntax
It stays within the configured line length
I'll leave this open for now to let other people chime in.
Black formatting
Ruff formatting
Ruff 0.0.289 with line-length 100
I prefer Black formatting
The text was updated successfully, but these errors were encountered: