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 9dade42 commit 83cfd2fCopy full SHA for 83cfd2f
pep-0613.rst
@@ -58,7 +58,7 @@ cannot be used as a return annotation because it is not a valid type.
58
59
::
60
61
- MyType: TypeAlias = “ClassName”
+ MyType: TypeAlias = "ClassName"
62
def foo() -> MyType: ...
63
64
Explicit aliases remove ambiguity so neither of the above errors will be
@@ -153,7 +153,7 @@ Explicit syntax:
153
x: Type[int] = int # typed global expression
154
155
x: TypeAlias = int # type alias
156
- x: TypeAlias = “MyClass” # type alias
+ x: TypeAlias = "MyClass" # type alias
157
158
159
Note: The examples above illustrate implicit and explicit alias declarations in
0 commit comments