Skip to content

Conversation

@ReubenJ
Copy link

@ReubenJ ReubenJ commented Oct 30, 2025

Addresses #159 following the suggestion at #159 (comment).

@MichaelHatherly
Copy link
Member

Thanks @ReubenJ, could I request though that the formatting changes aren't included to make the diff easier to review.

@ReubenJ
Copy link
Author

ReubenJ commented Oct 30, 2025

Certainly! I also wanted to add another test or two before review. Thanks for the speedy reply!

@ReubenJ ReubenJ force-pushed the feat/typed-signature-no-return branch from 1902da1 to 2057bd6 Compare October 30, 2025 16:46
The abbreviation should behave in the same way as TYPEDSIGNATURE
but omit the return type.
@ReubenJ ReubenJ force-pushed the feat/typed-signature-no-return branch 2 times, most recently from cdc9211 to 8a740b3 Compare October 30, 2025 17:06
@ReubenJ ReubenJ force-pushed the feat/typed-signature-no-return branch from 8a740b3 to 8f1797d Compare October 30, 2025 17:24
@ReubenJ ReubenJ marked this pull request as ready for review October 30, 2025 17:25
@ReubenJ
Copy link
Author

ReubenJ commented Oct 30, 2025

Pesky, pesky formatting. Should be good to go now @MichaelHatherly.

@fingolfin
Copy link
Contributor

Perhaps first #178 should be merged and then CI re-run here?

@ReubenJ
Copy link
Author

ReubenJ commented Oct 30, 2025

Also, not sure what your release workflow is—should I include a (patch) version bump in this PR?

@MichaelHatherly
Copy link
Member

Also, not sure what your release workflow is—should I include a (patch) version bump in this PR?

Can be done separately to this one.

@ReubenJ
Copy link
Author

ReubenJ commented Oct 30, 2025

Oops, something odd is happening, looks like the tests are not extensive enough yet. Give me a moment here.

@ReubenJ ReubenJ marked this pull request as draft October 30, 2025 17:35
@ReubenJ
Copy link
Author

ReubenJ commented Oct 30, 2025

With the following docstring

"""
    $(TYPEDSIGNATURESNORETURN)

"""
function get_solver(pi::ProgramIterator)
        return pi.solver
end

I'm getting

search: get_solver

  get_solver(pi)
  

  get_solver(pi::ProgramIterator)

I wouldn't expect to see the untyped signature there. With TYPEDSIGNATURES, all I see is:

help?> get_solver
search: get_solver

  get_solver(pi::ProgramIterator) -> Any

@ReubenJ
Copy link
Author

ReubenJ commented Oct 30, 2025

Stumped on this for the moment, I'll have to come back to it tomorrow.

@ReubenJ ReubenJ marked this pull request as ready for review November 1, 2025 06:31
@ReubenJ
Copy link
Author

ReubenJ commented Nov 1, 2025

No luck reproducing that behavior I saw while testing the changes in another repo, so I think this is ready to go as-is.

In the process of trying to reproduce what I saw above, I switched the new tests to use ReferenceTests.jl. I found it much easier to work with for this use case, though I'm happy to revert this change if you don't want to add a test dep.

@MichaelHatherly
Copy link
Member

though I'm happy to revert this change if you don't want to add a test dep.

Yes, please revert that.

If we're going to use ReferenceTests for testing that's fine, and I'd like to see that change, but it would need to be applied to all tests as a single change set rather than adding a few new ones that use it. Best to keep that as a completely separate PR rather than as part of this feature addition.

@ReubenJ
Copy link
Author

ReubenJ commented Nov 5, 2025

Sure! No problem.

@ReubenJ ReubenJ force-pushed the feat/typed-signature-no-return branch from a91c808 to 8f1797d Compare November 5, 2025 12:40
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.

3 participants