Add type hints for signal parameters
<!-- Please fill in *all* the questions below and don't remove any of them. Proposals not following the template below will be closed immediately. --> See https://github.com/godotengine/godot/issues/26045 ### Describe the project you are working on Godot ### Describe the problem or limitation you are having in your project Signals don't have type hints, meaning helper docs are bad and runtime exceptions are more probable ### Describe the feature / enhancement and how it helps to overcome the problem or limitation Type hint syntax for signal declarations, similar to function signatures ### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams ```py signal released(player: Player) ```  ### If this enhancement will not be used often, can it be worked around with a few lines of script? This will be used often. ### Is there a reason why this should be core and not an add-on in the asset library? Signals are part of core
Posted by nathanfranke on Apr 6, 2021, 5:38 AM
Tags
Related issues
- [Meta] Feedback on granular control over Copilot changes
- unexpected status 401 Unauthorized issue
- [MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
- [CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
- Video stops playing after some minutes
- [MODEL] Claude verbose code comments by default — ignores instructions to stop.
Raise real-world problems, find people facing the same issue, and discuss solutions.3,000 issues0 comments
github (Software)
[Meta] Feedback on granular control over Copilot changes
unexpected status 401 Unauthorized issue
[MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
[CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
Video stops playing after some minutes
[MODEL] Claude verbose code comments by default — ignores instructions to stop.
Scope Codex VS Code chats to the current workspace/project
Update on "Co-authored-by: Copilot" in commit messages
Add type hints for signal parameters
<!-- Please fill in *all* the questions below and don't remove any of them. Proposals not following the template below will be closed immediately. --> See https://github.com/godotengine/godot/issues/26045 ### Describe the project you are working on Godot ### Describe the problem or limitation you are having in your project Signals don't have type hints, meaning helper docs are bad and runtime exceptions are more probable ### Describe the feature / enhancement and how it helps to overcome the problem or limitation Type hint syntax for signal declarations, similar to function signatures ### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams ```py signal released(player: Player) ```  ### If this enhancement will not be used often, can it be worked around with a few lines of script? This will be used often. ### Is there a reason why this should be core and not an add-on in the asset library? Signals are part of core
Comments (0)
No comments yet. Start the discussion.