Skip to content

Commit e8c2576

Browse files
committed
simplify example
1 parent 7385382 commit e8c2576

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

peps/pep-0747.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ This explicit syntax serves two purposes. First, it documents the developer's
295295
intent to use the value as a type form object. Second, static type checkers
296296
validate that all rules for type expressions are followed::
297297

298-
x4 = type(int) # No error, evaluates to "type[type]"
298+
x4 = type(1) # No error, evaluates to "type[int]"
299299
300-
x5 = TypeForm(type(int)) # Error: call not allowed in type expression
300+
x5 = TypeForm(type(1)) # Error: call not allowed in type expression
301301

302302

303303
Assignability

0 commit comments

Comments
 (0)