Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-12 16:09:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-12 16:09:15 +0300
commit9dc19735c32dcec30d03516365c2cee8a4b4ddc6 (patch)
tree9ed6cd54c1f9e234618fbdc6b36e541b8bb3985d /blender_id
parent8a9cc98ff1328910b70f09bba196954c87738fb2 (diff)
Python: use fields
Diffstat (limited to 'blender_id')
-rw-r--r--blender_id/__init__.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/blender_id/__init__.py b/blender_id/__init__.py
index 0289b424..7d369bbd 100644
--- a/blender_id/__init__.py
+++ b/blender_id/__init__.py
@@ -179,26 +179,26 @@ def token_expires() -> typing.Optional[datetime.datetime]:
class BlenderIdPreferences(AddonPreferences):
bl_idname = __name__
- error_message = StringProperty(
+ error_message: StringProperty(
name='Error Message',
default='',
- options={'HIDDEN', 'SKIP_SAVE'}
+ options={'HIDDEN', 'SKIP_SAVE'},
)
- ok_message = StringProperty(
+ ok_message: StringProperty(
name='Message',
default='',
- options={'HIDDEN', 'SKIP_SAVE'}
+ options={'HIDDEN', 'SKIP_SAVE'},
)
- blender_id_username = StringProperty(
+ blender_id_username: StringProperty(
name='E-mail address',
default='',
- options={'HIDDEN', 'SKIP_SAVE'}
+ options={'HIDDEN', 'SKIP_SAVE'},
)
- blender_id_password = StringProperty(
+ blender_id_password: StringProperty(
name='Password',
default='',
options={'HIDDEN', 'SKIP_SAVE'},
- subtype='PASSWORD'
+ subtype='PASSWORD',
)
def reset_messages(self):