Skip to content

Commit ddb314f

Browse files
miss-islingtongpsheadwebknjaz
authored
[3.12] remove type annotations from multiprocessing. (GH-129381) (#129471)
remove type annotations from multiprocessing. (GH-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 --------- (cherry picked from commit 71aecc2) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
1 parent f463d05 commit ddb314f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/multiprocessing/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ def PipeClient(address):
846846
_LEGACY_LENGTHS = (_MD5ONLY_MESSAGE_LENGTH, _MD5_DIGEST_LEN)
847847

848848

849-
def _get_digest_name_and_payload(message: bytes) -> (str, bytes):
849+
def _get_digest_name_and_payload(message): # type: (bytes) -> tuple[str, bytes]
850850
"""Returns a digest name and the payload for a response hash.
851851
852852
If a legacy protocol is detected based on the message length

Lib/multiprocessing/synchronize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def wait(self, timeout=None):
360360
return True
361361
return False
362362

363-
def __repr__(self) -> str:
363+
def __repr__(self):
364364
set_status = 'set' if self.is_set() else 'unset'
365365
return f"<{type(self).__qualname__} at {id(self):#x} {set_status}>"
366366
#

0 commit comments

Comments
 (0)