Browse Source

Changed type annotation `any`s to `Any`

pull/400/head
1Codealot 1 year ago committed by Adam Johnson
parent
commit
b689cdb2a1
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 14
      korman/nodes/node_avatar.py
  2. 12
      korman/nodes/node_conditions.py
  3. 2
      korman/nodes/node_deprecated.py
  4. 4
      korman/nodes/node_logic.py
  5. 8
      korman/nodes/node_messages.py
  6. 6
      korman/nodes/node_responder.py
  7. 2
      korman/nodes/node_softvolume.py

14
korman/nodes/node_avatar.py

@ -45,7 +45,7 @@ class PlasmaSittingBehaviorNode(PlasmaNodeBase, bpy.types.Node):
}, },
} }
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"satisfies": { "satisfies": {
"text": "Satisfies", "text": "Satisfies",
"type": "PlasmaConditionSocket", "type": "PlasmaConditionSocket",
@ -172,7 +172,7 @@ class PlasmaAnimStageSettingsNode(PlasmaNodeBase, bpy.types.Node):
default={"kNotifyEnter"}, default={"kNotifyEnter"},
options={"ENUM_FLAG"}) options={"ENUM_FLAG"})
input_sockets: dict[str, dict[str, any]] = { input_sockets: dict[str, dict[str, Any]] = {
"advance_to": { "advance_to": {
"text": "Advance to Stage", "text": "Advance to Stage",
"type": "PlasmaAnimStageAdvanceSocketIn", "type": "PlasmaAnimStageAdvanceSocketIn",
@ -232,7 +232,7 @@ class PlasmaAnimStageNode(PlasmaNodeBase, bpy.types.Node):
description="Number of times to loop animation", description="Number of times to loop animation",
default=0) default=0)
input_sockets: dict[str, dict[str, any]] = { input_sockets: dict[str, dict[str, Any]] = {
"stage_settings": { "stage_settings": {
"text": "Stage Settings", "text": "Stage Settings",
"type": "PlasmaAnimStageSettingsSocket", "type": "PlasmaAnimStageSettingsSocket",
@ -242,7 +242,7 @@ class PlasmaAnimStageNode(PlasmaNodeBase, bpy.types.Node):
}, },
} }
output_sockets: dict[str, any] = { output_sockets: dict[str, Any] = {
"stage": { "stage": {
"text": "Behavior", "text": "Behavior",
"type": "PlasmaAnimStageRefSocket", "type": "PlasmaAnimStageRefSocket",
@ -295,7 +295,7 @@ class PlasmaMultiStageBehaviorNode(PlasmaNodeBase, bpy.types.Node):
description="Reverse forward/back controls at end", description="Reverse forward/back controls at end",
default=False) default=False)
input_sockets: dict[str, any] = { input_sockets: dict[str, Any] = {
"seek_target": { "seek_target": {
"text": "Seek Target", "text": "Seek Target",
"type": "PlasmaSeekTargetSocketIn", "type": "PlasmaSeekTargetSocketIn",
@ -316,7 +316,7 @@ class PlasmaMultiStageBehaviorNode(PlasmaNodeBase, bpy.types.Node):
}, },
} }
output_sockets: dict[str, any] = { output_sockets: dict[str, Any] = {
"hosts": { "hosts": {
"text": "Host Script", "text": "Host Script",
"type": "PlasmaBehaviorSocket", "type": "PlasmaBehaviorSocket",
@ -465,7 +465,7 @@ class PlasmaSeekTargetNode(PlasmaNodeBase, bpy.types.Node):
description="Object defining the Seek Point's position", description="Object defining the Seek Point's position",
type=bpy.types.Object) type=bpy.types.Object)
output_sockets: dict[str, any] = { output_sockets: dict[str, Any] = {
"seekers": { "seekers": {
"text": "Seekers", "text": "Seekers",
"type": "PlasmaSeekTargetSocketOut", "type": "PlasmaSeekTargetSocketOut",

12
korman/nodes/node_conditions.py

@ -43,7 +43,7 @@ class PlasmaClickableNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.types.N
items=bounds_types, items=bounds_types,
default="hull") default="hull")
input_sockets: dict[str, any] = { input_sockets: dict[str, Any] = {
"region": { "region": {
"text": "Avatar Inside Region", "text": "Avatar Inside Region",
"type": "PlasmaClickableRegionSocket", "type": "PlasmaClickableRegionSocket",
@ -59,7 +59,7 @@ class PlasmaClickableNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.types.N
}, },
} }
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"satisfies": { "satisfies": {
"text": "Satisfies", "text": "Satisfies",
"type": "PlasmaConditionSocket", "type": "PlasmaConditionSocket",
@ -279,7 +279,7 @@ class PlasmaFacingTargetNode(PlasmaNodeBase, bpy.types.Node):
get=_get_tolerance, set=_set_tolerance, get=_get_tolerance, set=_set_tolerance,
subtype="ANGLE", options=set()) subtype="ANGLE", options=set())
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"satisfies": { "satisfies": {
"text": "Satisfies", "text": "Satisfies",
"type": "PlasmaFacingTargetSocket", "type": "PlasmaFacingTargetSocket",
@ -379,7 +379,7 @@ class PlasmaVolumeReportNode(PlasmaNodeBase, bpy.types.Node):
description="How many objects should be in the region for it to trigger", description="How many objects should be in the region for it to trigger",
min=0) min=0)
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"settings": { "settings": {
"text": "Trigger Settings", "text": "Trigger Settings",
"type": "PlasmaVolumeSettingsSocketOut", "type": "PlasmaVolumeSettingsSocketOut",
@ -432,7 +432,7 @@ class PlasmaVolumeSensorNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.type
default={"kGroupAvatar"}, default={"kGroupAvatar"},
update=_update_report_on) update=_update_report_on)
input_sockets: dict[str, dict[str, any]] = { input_sockets: dict[str, dict[str, Any]] = {
"facing": { "facing": {
"text": "Avatar Facing Target", "text": "Avatar Facing Target",
"type": "PlasmaFacingTargetSocket", "type": "PlasmaFacingTargetSocket",
@ -454,7 +454,7 @@ class PlasmaVolumeSensorNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.type
}, },
} }
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"satisfies": { "satisfies": {
"text": "Satisfies", "text": "Satisfies",
"type": "PlasmaConditionSocket", "type": "PlasmaConditionSocket",

2
korman/nodes/node_deprecated.py

@ -62,7 +62,7 @@ class PlasmaResponderCommandNode(PlasmaDeprecatedNode, bpy.types.Node):
}, },
} }
output_sockets: dict[str, any] = { output_sockets: dict[str, Any] = {
"msg": { "msg": {
"link_limit": 1, "link_limit": 1,
"text": "Message", "text": "Message",

4
korman/nodes/node_logic.py

@ -53,7 +53,7 @@ class PlasmaExcludeRegionNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.typ
block_cameras = BoolProperty(name="Block Cameras", block_cameras = BoolProperty(name="Block Cameras",
description="The region blocks cameras when it has been cleared") description="The region blocks cameras when it has been cleared")
input_sockets:dict[str, dict[str, any]] = { input_sockets:dict[str, dict[str, Any]] = {
"safe_point": { "safe_point": {
"type": "PlasmaExcludeSafePointSocket", "type": "PlasmaExcludeSafePointSocket",
"text": "Safe Point", "text": "Safe Point",
@ -68,7 +68,7 @@ class PlasmaExcludeRegionNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.typ
}, },
} }
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"keyref": { "keyref": {
"text": "References", "text": "References",
"type": "PlasmaPythonReferenceNodeSocket", "type": "PlasmaPythonReferenceNodeSocket",

8
korman/nodes/node_messages.py

@ -38,7 +38,7 @@ class PlasmaMessageSocket(PlasmaMessageSocketBase, bpy.types.NodeSocket):
class PlasmaMessageNode(PlasmaNodeBase): class PlasmaMessageNode(PlasmaNodeBase):
input_sockets: dict[str, dict[str, any]] = { input_sockets: dict[str, dict[str, Any]] = {
"sender": { "sender": {
"text": "Sender", "text": "Sender",
"type": "PlasmaMessageSocket", "type": "PlasmaMessageSocket",
@ -404,7 +404,7 @@ class PlasmaEnableMsgNode(PlasmaMessageNode, bpy.types.Node):
bl_idname = "PlasmaEnableMsgNode" bl_idname = "PlasmaEnableMsgNode"
bl_label = "Enable/Disable" bl_label = "Enable/Disable"
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"receivers": { "receivers": {
"text": "Send To", "text": "Send To",
"type": "PlasmaEnableMessageSocket", "type": "PlasmaEnableMessageSocket",
@ -703,7 +703,7 @@ class PlasmaSceneObjectMsgRcvrNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bp
bl_label = "Send To Object" bl_label = "Send To Object"
bl_width_default = 190 bl_width_default = 190
input_sockets: dict[str, dict[str, any]]= { input_sockets: dict[str, dict[str, Any]]= {
"message": { "message": {
"text": "Message", "text": "Message",
"type": "PlasmaNodeSocketInputGeneral", "type": "PlasmaNodeSocketInputGeneral",
@ -1030,7 +1030,7 @@ class PlasmaTriggerMultiStageMsgNode(PlasmaMessageNode, bpy.types.Node):
bl_idname = "PlasmaTriggerMultiStageMsgNode" bl_idname = "PlasmaTriggerMultiStageMsgNode"
bl_label = "Trigger MultiStage" bl_label = "Trigger MultiStage"
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"satisfies": { "satisfies": {
"text": "Trigger", "text": "Trigger",
"type": "PlasmaConditionSocket", "type": "PlasmaConditionSocket",

6
korman/nodes/node_responder.py

@ -46,7 +46,7 @@ class PlasmaResponderNode(PlasmaVersionedNode, bpy.types.Node):
default_state = IntProperty(name="Default State Index", default_state = IntProperty(name="Default State Index",
options=set()) options=set())
input_sockets: dict[str, dict[str, any]] = { input_sockets: dict[str, dict[str, Any]] = {
"condition": { "condition": {
"text": "Condition", "text": "Condition",
"type": "PlasmaConditionSocket", "type": "PlasmaConditionSocket",
@ -54,7 +54,7 @@ class PlasmaResponderNode(PlasmaVersionedNode, bpy.types.Node):
}, },
} }
output_sockets: dict[str, dict[str, any]] = { output_sockets: dict[str, dict[str, Any]] = {
"keyref": { "keyref": {
"text": "References", "text": "References",
"type": "PlasmaPythonReferenceNodeSocket", "type": "PlasmaPythonReferenceNodeSocket",
@ -227,7 +227,7 @@ class PlasmaResponderStateNode(PlasmaNodeBase, bpy.types.Node):
set=_set_default_state, set=_set_default_state,
options=set()) options=set())
input_sockets: dict[str, any] = { input_sockets: dict[str, Any] = {
"condition": { "condition": {
"text": "Triggers State", "text": "Triggers State",
"type": "PlasmaRespStateSocket", "type": "PlasmaRespStateSocket",

2
korman/nodes/node_softvolume.py

@ -155,7 +155,7 @@ class PlasmaSoftVolumeInvertNode(PlasmaNodeBase, bpy.types.Node):
class PlasmaSoftVolumeLinkNode(PlasmaNodeBase): class PlasmaSoftVolumeLinkNode(PlasmaNodeBase):
input_sockets: dict[str, any] = { input_sockets: dict[str, Any] = {
"properties": { "properties": {
"text": "Properties", "text": "Properties",
"type": "PlasmaSoftVolumePropertiesNodeSocket", "type": "PlasmaSoftVolumePropertiesNodeSocket",

Loading…
Cancel
Save