Skip to content

Commit 5327323

Browse files
committed
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
1 parent 379ab85 commit 5327323

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
@@ -853,7 +853,7 @@ def PipeClient(address):
853853
_LEGACY_LENGTHS = (_MD5ONLY_MESSAGE_LENGTH, _MD5_DIGEST_LEN)
854854

855855

856-
def _get_digest_name_and_payload(message: bytes) -> (str, bytes):
856+
def _get_digest_name_and_payload(message): # (message: bytes) -> tuple[str, bytes]
857857
"""Returns a digest name and the payload for a response hash.
858858
859859
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
@@ -359,7 +359,7 @@ def wait(self, timeout=None):
359359
return True
360360
return False
361361

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

0 commit comments

Comments
 (0)