Navigation Menu

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

Clean up function bindings #2480

Merged
merged 17 commits into from Mar 9, 2022
Merged

Clean up function bindings #2480

merged 17 commits into from Mar 9, 2022

Conversation

jl-wynen
Copy link
Member

@jl-wynen jl-wynen commented Mar 7, 2022

Fixes a number of issues with the bindings and adds more tests. I think we have coverage of all exposed functions now.

Also removes some unused bindings.

@@ -59,6 +60,7 @@ Math
round
sqrt
subtract
unary_minus
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

That's why I didn't find it! Renaming...

Comment on lines 12 to 27
"""Element-wise logical negation.

Equivalent to

.. code-block:: python

~a

:param x: Input data.
:return: The logical inverse of `x`.
"""
Copy link
Member

Choose a reason for hiding this comment

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

Remember that we can use a new docstring style! But we may also want to leave this here and try to auto-convert all of them at once.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah right, this was largely copy-pasted. I am going to change it, there is no reason to merge it like this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. I tried pyment but it struggles with type hints like Union, example sections, and see also sections. I ended up doing it with a few search and replace operations...

@SimonHeybrock SimonHeybrock merged commit 7bc56d6 into main Mar 9, 2022
@SimonHeybrock SimonHeybrock deleted the fix-operator-binding branch March 9, 2022 07:43
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

2 participants