Skip to content

buffer.*: fix stubtest errors - #2449

Merged
WyattBlue merged 1 commit into
PyAV-Org:masterfrom
jorenham:typing/buffer/stubtest-fixes
Oct 21, 2026
Merged

WyattBlue merged 1 commit into
PyAV-Org:masterfrom
jorenham:typing/buffer/stubtest-fixes

Conversation

@jorenham

Copy link
Copy Markdown
Contributor

This fixes the following three stubtest errors:

av.buffer.Buffer is a disjoint base at runtime, but isn't marked with @disjoint_base in the stub
av.buffer.Buffer.__buffer__ is inconsistent, stub parameter "flags" should be positional-only (add "/", e.g. "flags, /")
av.buffer.ByteSource is not present in stub

Stubtest also complains about a missing av.buffer.__pyx_capi__, but I wasn't sure if it'd be worth the churn, so I left it out 🤷

@WyattBlue
WyattBlue merged commit 4e33d20 into PyAV-Org:master Oct 21, 2026
8 of 9 checks passed
@jorenham
jorenham deleted the typing/buffer/stubtest-fixes branch October 21, 2026 20:53
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