Skip to content

Commit 83cfd2f

Browse files
authored
Change unicode quotes with ASCII quotes (#2188)
1 parent 9dade42 commit 83cfd2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pep-0613.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ cannot be used as a return annotation because it is not a valid type.
5858

5959
::
6060

61-
MyType: TypeAlias = ClassName
61+
MyType: TypeAlias = "ClassName"
6262
def foo() -> MyType: ...
6363

6464
Explicit aliases remove ambiguity so neither of the above errors will be
@@ -153,7 +153,7 @@ Explicit syntax:
153153
x: Type[int] = int # typed global expression
154154

155155
x: TypeAlias = int # type alias
156-
x: TypeAlias = MyClass # type alias
156+
x: TypeAlias = "MyClass" # type alias
157157

158158

159159
Note: The examples above illustrate implicit and explicit alias declarations in

0 commit comments

Comments
 (0)