Change unicode quotes with ASCII quotes (#2188)

This commit is contained in:
Ram Rachum 2021-12-09 15:37:35 +02:00 committed by GitHub
parent 9dade42dbe
commit 83cfd2f7d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ cannot be used as a return annotation because it is not a valid type.
::
MyType: TypeAlias = “ClassName”
MyType: TypeAlias = "ClassName"
def foo() -> MyType: ...
Explicit aliases remove ambiguity so neither of the above errors will be
@ -153,7 +153,7 @@ Explicit syntax:
x: Type[int] = int # typed global expression
x: TypeAlias = int # type alias
x: TypeAlias = “MyClass” # type alias
x: TypeAlias = "MyClass" # type alias
Note: The examples above illustrate implicit and explicit alias declarations in