]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46333: include `module` in `ForwardRef.__repr__` (#31283)
authoraha79 <34090357+aha79@users.noreply.github.com>
Sat, 12 Feb 2022 15:35:57 +0000 (16:35 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Feb 2022 15:35:57 +0000 (07:35 -0800)
commitb70690bb37cc4bac695051484734eede0c1f9ada
tree3ebf94f7f4ee7a00260db3b9e40b92c748303bfa
parent8aaaf7e182e22026c3487a3b86d4d7d4f0f5f778
bpo-46333: include `module` in `ForwardRef.__repr__` (#31283)

The module parameter carries semantic information about the forward ref.
Show to the user that forward refs with same argument but different
module are different.

Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-02-11-20-01-49.bpo-46333.PMTBY9.rst [new file with mode: 0644]