We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2371b9c commit 4f2a433Copy full SHA for 4f2a433
peps/pep-0747.rst
@@ -289,10 +289,10 @@ Explicit ``TypeForm`` Evaluation
289
Type checkers should validate that this argument is a valid type expression::
290
291
x1 = TypeForm(str | None)
292
- reveal_type(v1) # Revealed type is "TypeForm[str | None]"
+ reveal_type(x1) # Revealed type is "TypeForm[str | None]"
293
294
x2 = TypeForm('list[int]')
295
- revealed_type(v2) # Revealed type is "TypeForm[list[int]]"
+ reveal_type(x2) # Revealed type is "TypeForm[list[int]]"
296
297
x3 = TypeForm('type(1)') # Error: invalid type expression
298
0 commit comments