◐ Shell
clean mode source ↗

[3.9] bpo-46333: Honor `module` parameter in ForwardRef (GH-30536) by miss-islington · Pull Request #31380 · python/cpython

@aha79 @miss-islington

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 6e7b813)

Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>