mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
Clean up a few Python 2 remnants (#8452)
This commit is contained in:
1 parent
ca633bbde8
commit
4414246a15
5 files changed
+3
-24
No files matched your search
+1
-1
@@ -75,7 +75,7 @@ class _Stream(_WritableStream, _ReadableStream, Protocol): ...
|
||||
# bytes is the raw form and str is the cooked form.
|
||||
# In the long run, both should become template parameters maybe?
|
||||
# There *are* bytes->bytes and str->str encodings in the standard library.
|
||||
# They are much more common in Python 2 than in Python 3.
|
||||
# They were much more common in Python 2 than in Python 3.
|
||||
|
||||
class _Encoder(Protocol):
|
||||
def __call__(self, input: str, errors: str = ...) -> tuple[bytes, int]: ... # signature of Codec().encode
|
||||
|
||||
Reference in new issue
Block a user