Browse Source

Changed type annotation `any`s to `Any`

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

12
korman/nodes/node_conditions.py

@ -43,7 +43,7 @@ class PlasmaClickableNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.types.N
items=bounds_types,
default="hull")
input_sockets: dict[str, any] = {
input_sockets: dict[str, Any] = {
"region": {
"text": "Avatar Inside Region",
"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": {
"text": "Satisfies",
"type": "PlasmaConditionSocket",
@ -279,7 +279,7 @@ class PlasmaFacingTargetNode(PlasmaNodeBase, bpy.types.Node):
get=_get_tolerance, set=_set_tolerance,
subtype="ANGLE", options=set())
output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"satisfies": {
"text": "Satisfies",
"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",
min=0)
output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"settings": {
"text": "Trigger Settings",
"type": "PlasmaVolumeSettingsSocketOut",
@ -432,7 +432,7 @@ class PlasmaVolumeSensorNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.type
default={"kGroupAvatar"},
update=_update_report_on)
input_sockets: dict[str, dict[str, any]] = {
input_sockets: dict[str, dict[str, Any]] = {
"facing": {
"text": "Avatar Facing Target",
"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": {
"text": "Satisfies",
"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": {
"link_limit": 1,
"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",
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": {
"type": "PlasmaExcludeSafePointSocket",
"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": {
"text": "References",
"type": "PlasmaPythonReferenceNodeSocket",

8
korman/nodes/node_messages.py

@ -38,7 +38,7 @@ class PlasmaMessageSocket(PlasmaMessageSocketBase, bpy.types.NodeSocket):
class PlasmaMessageNode(PlasmaNodeBase):
input_sockets: dict[str, dict[str, any]] = {
input_sockets: dict[str, dict[str, Any]] = {
"sender": {
"text": "Sender",
"type": "PlasmaMessageSocket",
@ -404,7 +404,7 @@ class PlasmaEnableMsgNode(PlasmaMessageNode, bpy.types.Node):
bl_idname = "PlasmaEnableMsgNode"
bl_label = "Enable/Disable"
output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"receivers": {
"text": "Send To",
"type": "PlasmaEnableMessageSocket",
@ -703,7 +703,7 @@ class PlasmaSceneObjectMsgRcvrNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bp
bl_label = "Send To Object"
bl_width_default = 190
input_sockets: dict[str, dict[str, any]]= {
input_sockets: dict[str, dict[str, Any]]= {
"message": {
"text": "Message",
"type": "PlasmaNodeSocketInputGeneral",
@ -1030,7 +1030,7 @@ class PlasmaTriggerMultiStageMsgNode(PlasmaMessageNode, bpy.types.Node):
bl_idname = "PlasmaTriggerMultiStageMsgNode"
bl_label = "Trigger MultiStage"
output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"satisfies": {
"text": "Trigger",
"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",
options=set())
input_sockets: dict[str, dict[str, any]] = {
input_sockets: dict[str, dict[str, Any]] = {
"condition": {
"text": "Condition",
"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": {
"text": "References",
"type": "PlasmaPythonReferenceNodeSocket",
@ -227,7 +227,7 @@ class PlasmaResponderStateNode(PlasmaNodeBase, bpy.types.Node):
set=_set_default_state,
options=set())
input_sockets: dict[str, any] = {
input_sockets: dict[str, Any] = {
"condition": {
"text": "Triggers State",
"type": "PlasmaRespStateSocket",

2
korman/nodes/node_softvolume.py

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

Loading…
Cancel
Save