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

add missing annotation to PyCounter.__call__ #1995

Merged
merged 1 commit into from Nov 15, 2021
Merged

add missing annotation to PyCounter.__call__ #1995

merged 1 commit into from Nov 15, 2021

Conversation

gertjanvanzwieten
Copy link
Contributor

This patch annotates the __call__ method of PyCounter in example: callable objects with #[args(args="*", kwargs="**")]. Without it (at least in PyO3 0.15.0) the example fails with TypeError: counter.__call__() missing 1 required positional argument: 'args'.

This patch annotates the `__call__` method of `PyCounter` in example: callable
objects with `#[args(args="*", kwargs="**")]`. Without it (at least in PyO3
0.15.0) the example fails with `TypeError: counter.__call__() missing 1
required positional argument: 'args'`.
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks!

@davidhewitt davidhewitt merged commit 3e16a2a into PyO3:main Nov 15, 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.

None yet

2 participants