Skip to content

_cffi_backend.pyi FFI.__init__'s bytes #13447

@senyai

Description

@senyai

Hi!

About this stub:
https://github.com/python/typeshed/blob/c193cd2a36839c8e6336f350397f51ce52fedd5e/stubs/cffi/_cffi_backend.pyi#L128C1-L138C19
all str in this __init__ method should be bytes. Because that's how it is when cffi is used in out-of-line mode (i.e compiled). And PyBytes_AS_STRING is called on even arguments https://github.com/python-cffi/cffi/blob/25172b84cf51cf58241f074ccd1efd9c7648cb43/src/c/cdlopen.c#L191

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions