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

Update froidure-pin-hpp for v1/3 #197

Open
wants to merge 11 commits into
base: v1
Choose a base branch
from

Conversation

james-d-mitchell
Copy link
Member

@james-d-mitchell james-d-mitchell commented Oct 23, 2024

This PR requires the corresponding one in libsemigroups to be merged first, and also for some of the tests to be adjusted.

@james-d-mitchell james-d-mitchell added the v1 Label for issues/prs for v1 label Oct 25, 2024
Comment on lines +86 to +103
# The following is kind of ridiculous, I'm sure there must be a better way
try:
sig = inspect.signature(func)
sig_str = str(inspect.signature(func))
if sig_str.startswith("(self"):
params = sig_str.split(",")
if len(params) == 1 or params[1] != " *args":
sig = sig.replace(
parameters=(
inspect.Parameter(
"dummy", inspect.Parameter.POSITIONAL_ONLY
),
)
+ tuple(val for val in sig.parameters.values())
)
wrapper.__signature__ = sig
except ValueError:
pass
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Joseph-Edwards the ridiculous fix

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

Successfully merging this pull request may close these issues.

1 participant