[Bugfix] Entity.visible_entities(radius=None) raises TypeError instead of applying the default #319
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during the #314 F15 docstring-accuracy verify pass.
In
src/UIEntity.cpp,visible_entities(fov=None, radius=...)parsesradiuswith the PyArg format codei(format string"|Oi"). Theicode does not accept PythonNone, so callingentity.visible_entities(radius=None)raisesTypeError. The intended default only applies whenradiusis omitted entirely.Impact: The natural
radius=None("use the default") call fails. Fix options: switch toOparsing with manual None→default handling, or documentradiusas a plain int with a real sentinel default.The signature docstring/stub have been corrected (in the F15 accuracy pass) to stop implying
radius=Noneis accepted; this issue tracks the code-level ergonomics fix.Suggested labels:
Bugfix,system:python-binding,priority:tier2-foundation. (Apply manually — Gitea MCP label bug.)Refs #314