You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Private base classes are problematic from a documentation PoV (see lengthy discussion at #15503). In the specific case of ConnectionStyle._Base and ArrowStyle._Base, the base class could be eliminated by moving its logic to the caller side, as was done for BoxStyle._Base in #17737. This would make it easier for third parties to implement their own ConnectionStyles/ArrowStyles as plain classes with a __call__ method.
Proposed fix
Deprecate ConnectionStyle._Base and ArrowStyle._Base, with the same logic-moving as in #17737.
The text was updated successfully, but these errors were encountered:
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
This is also weird for typing purposes, where we say we accept ConnectionStyle, except that none of the actual style classes derive from it, but from the hidden _Base.
Describe the issue
Summary
Private base classes are problematic from a documentation PoV (see lengthy discussion at #15503). In the specific case of ConnectionStyle._Base and ArrowStyle._Base, the base class could be eliminated by moving its logic to the caller side, as was done for BoxStyle._Base in #17737. This would make it easier for third parties to implement their own ConnectionStyles/ArrowStyles as plain classes with a
__call__
method.Proposed fix
Deprecate ConnectionStyle._Base and ArrowStyle._Base, with the same logic-moving as in #17737.
The text was updated successfully, but these errors were encountered: