Skip to content

Commit d608058

Browse files
committed
Merge branch 'bpo_46333_eq_and_repr_for_forwardref' of github.com:aha79/cpython into bpo_46333_eq_and_repr_for_forwardref
2 parents 7577633 + c084fdb commit d608058

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
Honor the ``module`` parameter in :class:`typing.ForwardRef`, as it carries semantic information about the forward reference. This affects the :meth:`__eq__`, :meth:`__repr__` and :meth:`__hash__` methods of the class.
1+
The :meth:`__eq__`, :meth:`__repr__` and :meth:`__hash__` methods of
2+
:class:`typing.ForwardRef` now honor the ``module`` parameter of
3+
:class:`typing.ForwardRef`. Forward references from different
4+
modules are now differentiated.

0 commit comments

Comments
 (0)