Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak docs, add tests for extension interface #1825

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timholy
Copy link
Contributor

@timholy timholy commented Jan 14, 2024

This makes minor documentaion changes that show
users how to extend the interface without generating
ambiguities or StackOverflowErrors.

It turns out to be important to ensure that one's methods "win" specificity, otherwise it's pretty easy to get StackOverflowErrors. In particular, AbstractArray often isn't sufficient, it often needs to be {<:Real} and/or of specific dimensionality.

Note that a few are @test_broken, despite following the documentation. These could be fixed during review or in a follow-up PR.

This makes minor documentaion changes that show
users how to extend the interface without generating
ambiguities or StackOverflowErrors.
@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c1705a3) 85.94% compared to head (4043a48) 85.95%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1825      +/-   ##
==========================================
+ Coverage   85.94%   85.95%   +0.01%     
==========================================
  Files         144      144              
  Lines        8658     8658              
==========================================
+ Hits         7441     7442       +1     
+ Misses       1217     1216       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ViralBShah
Copy link
Contributor

@devmotion @andreasnoack Perhaps this is worth a look to review and merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants