We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bcd4c1 commit 09ae69cCopy full SHA for 09ae69c
CONTRIBUTING.md
@@ -286,6 +286,13 @@ Two exceptions are `Protocol` and `runtime_checkable`: although
286
these were added in Python 3.8, they can be used in stubs regardless
287
of Python version.
288
289
+[PEP 688](https://www.python.org/dev/peps/pep-0688/), which is
290
+currently a draft, removes the implicit promotion of the
291
+`bytearray` and `memoryview` classes to `bytes`.
292
+Typeshed stubs should be written assuming that this proposal
293
+is accepted, so a parameter that accepts either `bytes` or
294
+`bytearray` should be typed as `bytes | bytearray`.
295
+
296
### What to include
297
298
Stubs should include the complete interface (classes, functions,
0 commit comments