Change unicode quotes with ASCII quotes (#2188)
This commit is contained in:
parent
9dade42dbe
commit
83cfd2f7d3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue