Hide classes from the module which can't be instantiated #189
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#189
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?
mcrfpy.Window,mcrfpy.Keyboardare classes which really shouldn't be instantiated.These classes should not be exported by
mcrfpy:EntityCollectionUICollectionUICollectionIterUIEntityCollectionIter(the inconsistency fromEntityCollectionbothers me here, too)GridPointGridPointStateI see
mcrfpy.default_fovbut notmcrfpy.default_transition- yetdefault_transitioncan be retrieved - is somegetattrblack magic occurring? The defaults should be visible.Theoretically, curious users might still be able to get a reference to these class objects by calling
type(someresult), which is fine; I just don't want to clutter the namespace with objects that users really don't need direct access to.I'm deliberately excluding
mcrfpy.Drawablefrom the exclude list. Users have a use for it:isinstance(widget, mcrfpy.Drawble).mcrfpy.Keyboardis instantiable)mcrfpy.Mouseclass too..parentquirks #183