Skip to content

Commit 4f2a433

Browse files
authored
PEP 747: fix minor typos (#4884)
1 parent 2371b9c commit 4f2a433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

peps/pep-0747.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,10 @@ Explicit ``TypeForm`` Evaluation
289289
Type checkers should validate that this argument is a valid type expression::
290290

291291
x1 = TypeForm(str | None)
292-
reveal_type(v1) # Revealed type is "TypeForm[str | None]"
292+
reveal_type(x1) # Revealed type is "TypeForm[str | None]"
293293

294294
x2 = TypeForm('list[int]')
295-
revealed_type(v2) # Revealed type is "TypeForm[list[int]]"
295+
reveal_type(x2) # Revealed type is "TypeForm[list[int]]"
296296

297297
x3 = TypeForm('type(1)') # Error: invalid type expression
298298

0 commit comments

Comments
 (0)