I looked at Creating patch from GitHub pull request (Example)
and when I tried this one https://patch-diff.githubusercontent.com/raw/python/cpython/pull/1982.patch
and ran
cpython on main [$] via v3.11.0a6+
✦ ❯ git am --patch-format=mbox 1982.patch
Applying: bpo-30587: Adds signature checking for mock autospec object method calls
error: patch failed: Lib/unittest/mock.py:103
error: Lib/unittest/mock.py: patch does not apply
error: patch failed: Lib/unittest/test/testmock/testmock.py:1376
error: Lib/unittest/test/testmock/testmock.py: patch does not apply
Patch failed at 0001 bpo-30587: Adds signature checking for mock autospec object method calls
Is there ‘correct’ way to do this?
Or is it that a 3.8 patch is incompatible with the latest 3.11.0a6?