diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-07-11 23:18:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-07-11 23:18:09 +0300 |
commit | 09aa799e5331a9da666f8a6325b038a866b1f35d (patch) | |
tree | ccff0086f70ea7929554a7e4c90bd1182f125ba6 /release/scripts/startup/bl_operators/console.py | |
parent | e3c85aaca74fc7bd2a9da43a0396a886363bc93d (diff) |
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.
Diffstat (limited to 'release/scripts/startup/bl_operators/console.py')
-rw-r--r-- | release/scripts/startup/bl_operators/console.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/console.py b/release/scripts/startup/bl_operators/console.py index 2d32f84805e..b62b9310224 100644 --- a/release/scripts/startup/bl_operators/console.py +++ b/release/scripts/startup/bl_operators/console.py @@ -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, ) |