Skip to content

Commit

Permalink
Changed type annotation anys to Any
Browse files Browse the repository at this point in the history
  • Loading branch information
1Codealot authored and Hoikas committed Jan 20, 2024
1 parent 12d3ab4 commit b689cdb
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
14 changes: 7 additions & 7 deletions korman/nodes/node_avatar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions korman/nodes/node_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -279,7 +279,7 @@ def _set_tolerance(self, value: float) -> None:
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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -432,7 +432,7 @@ def _update_report_on(self, context):
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",
Expand All @@ -454,7 +454,7 @@ def _update_report_on(self, context):
},
}

output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"satisfies": {
"text": "Satisfies",
"type": "PlasmaConditionSocket",
Expand Down
2 changes: 1 addition & 1 deletion korman/nodes/node_deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions korman/nodes/node_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _set_bounds(self, value):
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",
Expand All @@ -68,7 +68,7 @@ def _set_bounds(self, value):
},
}

output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"keyref": {
"text": "References",
"type": "PlasmaPythonReferenceNodeSocket",
Expand Down
8 changes: 4 additions & 4 deletions korman/nodes/node_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions korman/nodes/node_responder.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ 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",
"spawn_empty": True,
},
}

output_sockets: dict[str, dict[str, any]] = {
output_sockets: dict[str, dict[str, Any]] = {
"keyref": {
"text": "References",
"type": "PlasmaPythonReferenceNodeSocket",
Expand Down Expand Up @@ -227,7 +227,7 @@ def _set_default_state(self, value):
set=_set_default_state,
options=set())

input_sockets: dict[str, any] = {
input_sockets: dict[str, Any] = {
"condition": {
"text": "Triggers State",
"type": "PlasmaRespStateSocket",
Expand Down
2 changes: 1 addition & 1 deletion korman/nodes/node_softvolume.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def export_once(self):


class PlasmaSoftVolumeLinkNode(PlasmaNodeBase):
input_sockets: dict[str, any] = {
input_sockets: dict[str, Any] = {
"properties": {
"text": "Properties",
"type": "PlasmaSoftVolumePropertiesNodeSocket",
Expand Down

0 comments on commit b689cdb

Please sign in to comment.