Skip to content

[cffi] Fix a few argument types for C code #13661

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

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Mar 18, 2025

  • CLibrary.close_lib() doesn't take any arguments.
  • FFI.typeof() only takes positional arguments.

* CLibrary.close_lib() doesn't take any arguments.
* FFI.typeof() only takes positional arguments.
@srittau srittau changed the title [cffi] Fix a few argument types of C code [cffi] Fix a few argument types for C code Mar 18, 2025
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

IIRC Serhiy made some improvements to inspect.signature() and/or argument clinic in Python 3.13, which is probably why these are being picked up when stubtest is run on 3.13 but not otherwise. (And this is obviously a good argument for running stubtest with py313 if possible!)

@srittau srittau merged commit e571017 into python:main Mar 18, 2025
43 checks passed
@srittau srittau deleted the cffi-args branch March 18, 2025 11:53
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
* CLibrary.close_lib() doesn't take any arguments.
* FFI.typeof() only takes positional arguments.
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.

2 participants