]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46333: Honor `module` parameter in ForwardRef (GH-30536)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 17 Feb 2022 03:53:31 +0000 (19:53 -0800)
committerGitHub <noreply@github.com>
Thu, 17 Feb 2022 03:53:31 +0000 (19:53 -0800)
commit29ae7d3996e073ec3f15c4e7486b17c1d0e3c8f5
treed08d4aaf483757d9eb7e1d927994573b80aadf16
parenta657bff34945e40be24cd75d02560a93b7623cf5
bpo-46333: Honor `module` parameter in ForwardRef (GH-30536)

The `module` parameter carries semantic information about the forward ref.
Forward refs are different if they refer to different module even if they
have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 6e7b813195f9bd6a2a15c1f00ef2c0180f6c751a)

Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/ACKS
Misc/NEWS.d/next/Library/2022-01-11-15-54-15.bpo-46333.B1faiF.rst [new file with mode: 0644]