Skip to content

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

Merged
srittau merged 1 commit intopython:mainfrom
srittau:cffi-args
Mar 18, 2025
Merged

[cffi] Fix a few argument types for C code#13661
srittau merged 1 commit intopython:mainfrom
srittau:cffi-args

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
@github-actions
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