Python syntax in bpy.props? --solved

So I’m trying to understand the python api and stumbled on this page here:
https://docs.blender.org/api/current/bpy.props.html

I read an unusual syntax in their example code:

my_float: bpy.props.FloatProperty(name="Some Floating Point")
my_bool: bpy.props.BoolProperty(name="Toggle Option")
my_string: bpy.props.StringProperty(name="String Value")

I’m not sure what the colon is doing. I looked up python’s syntax but found nothing about this. This seems to be assigning a variable, but I only know of using the equal sign for this. For example: my_variable = some.object.etc

Anyone have links elaborating this colon syntax?

https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Addons#Class_Property_Registration

1 Like

:smile:

Thanks! That pretty much answers that!