Bytes-like object or Buffer type annotaion

Viewed 1525

How do I annotate a bytes-like object or a Buffer?

There is no interface for the buffer protocol but I wish to accept all buffers in a function of mine.

I don't mind if it's only mypy-specific.

1 Answers
Related