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

Allow callable structs in argument_names #21

Merged

Conversation

bgroenks96
Copy link
Contributor

Fixes #16

In the future, we could add full support for callable structs by allowing the user to specify whether or not to include the first argument name/type in the output of signature. I'm not sure that we want to do it automatically because 1) this would introduce inconsistency into the behavior and 2) excluding the function object name/type is probably the most common use case. In fact, one would (I think) always need to have an instance of the struct available in order to obtain the corresponding method anyway, so it's probably redundant.

@omus omus requested a review from oxinabox July 5, 2021 16:17
@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #21 (2aec712) into master (b374c69) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
- Coverage   98.61%   98.60%   -0.01%     
==========================================
  Files           5        5              
  Lines         216      215       -1     
==========================================
- Hits          213      212       -1     
  Misses          3        3              
Impacted Files Coverage Δ
src/method.jl 99.05% <100.00%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b374c69...2aec712. Read the comment docs.

@bgroenks96
Copy link
Contributor Author

Hmm, looks like that test is too fragile.

@oxinabox oxinabox merged commit d321c2e into invenia:master Jul 5, 2021
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.

signature doesn't work for callable structs
2 participants