aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/multiprocessing/connection.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2025-01-30 00:31:54 -0800
committerGitHub <noreply@github.com>2025-01-30 00:31:54 -0800
commit71aecc284efdf997939568a4167dbffe1a65b9bf (patch)
tree5e23f3a3fd85b5ce19d5a6e4a9e82dd6b39f4824 /Lib/multiprocessing/connection.py
parentbcb25d60b1baf9348e73cbd2359342cea6009c36 (diff)
downloadcpython-71aecc284efdf997939568a4167dbffe1a65b9bf.tar.gz
cpython-71aecc284efdf997939568a4167dbffe1a65b9bf.zip
remove type annotations from multiprocessing. (#129381)
* remove type annotations from multiprocessing. One of them was technically invalid per typing specs... but since we're not checking these in the stdlib today lets elide them. https://discuss.python.org/t/static-type-annotations-in-cpython/65068/13 * use the actual comment style annotation format Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> --------- Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Diffstat (limited to 'Lib/multiprocessing/connection.py')
-rw-r--r--Lib/multiprocessing/connection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py
index 710aba9685e..d429212d447 100644
--- a/Lib/multiprocessing/connection.py
+++ b/Lib/multiprocessing/connection.py
@@ -853,7 +853,7 @@ _MD5_DIGEST_LEN = 16
_LEGACY_LENGTHS = (_MD5ONLY_MESSAGE_LENGTH, _MD5_DIGEST_LEN)
-def _get_digest_name_and_payload(message: bytes) -> (str, bytes):
+def _get_digest_name_and_payload(message): # type: (bytes) -> tuple[str, bytes]
"""Returns a digest name and the payload for a response hash.
If a legacy protocol is detected based on the message length