PyAPI: Use annotations for RNA definitions
- Logical use of fields since they define type information. - Avoids using ordered-dict metaclass. Properties using regular assignments will print a warning and load, however the order is undefined.
This commit is contained in:
@@ -37,7 +37,7 @@ class ConsoleExec(Operator):
|
||||
bl_idname = "console.execute"
|
||||
bl_label = "Console Execute"
|
||||
|
||||
interactive = BoolProperty(
|
||||
interactive: BoolProperty(
|
||||
options={'SKIP_SAVE'},
|
||||
)
|
||||
|
||||
@@ -137,7 +137,7 @@ class ConsoleLanguage(Operator):
|
||||
bl_idname = "console.language"
|
||||
bl_label = "Console Language"
|
||||
|
||||
language = StringProperty(
|
||||
language: StringProperty(
|
||||
name="Language",
|
||||
maxlen=32,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user