mirror of
https://github.com/microsoft/pyright.git
synced 2024-09-11 16:06:39 +03:00
Fixed bug in sample code for documentation.
This commit is contained in:
parent
ee2b18986e
commit
9ac028e7ab
@ -196,9 +196,9 @@ class Color(Enum):
|
|||||||
GREEN = 3
|
GREEN = 3
|
||||||
|
|
||||||
def func3(color: Color) -> str:
|
def func3(color: Color) -> str:
|
||||||
if color === Color.RED or color === Color.Blue:
|
if color == Color.RED or color == Color.BLUE:
|
||||||
return "yes"
|
return "yes"
|
||||||
elif color === Color.GREEN:
|
elif color == Color.GREEN:
|
||||||
return "no"
|
return "no"
|
||||||
|
|
||||||
def func4(value: str | int) -> str:
|
def func4(value: str | int) -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user