Skip to content

Commit e8ec2bf

Browse files
committed
Update a link
1 parent ff6cf96 commit e8ec2bf

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎docs/spec/distributing.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ assignments::
105105
x = 0 # type: int
106106
x = ... # type: int
107107

108-
The :ref:`Literal shortcut using Final <literal-final-interactions>` should be
108+
The :ref:`Literal shortcut using Final <final-inference>` should be
109109
supported::
110110

111111
x: Final = 0 # type is Literal[0]

‎docs/spec/literal.rst‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,6 @@ involving Literal bools. For example, we can combine ``Literal[True]``,
499499
else:
500500
scalar += "foo" # Type checks: type of 'scalar' is narrowed to 'str'
501501

502-
.. _literal-final-interactions:
503-
504502
Interactions with Final
505503
"""""""""""""""""""""""
506504

0 commit comments

Comments
 (0)