mirror of
https://github.com/microsoft/pyright.git
synced 2024-08-17 03:40:44 +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
|
||||
|
||||
def func3(color: Color) -> str:
|
||||
if color === Color.RED or color === Color.Blue:
|
||||
if color == Color.RED or color == Color.BLUE:
|
||||
return "yes"
|
||||
elif color === Color.GREEN:
|
||||
elif color == Color.GREEN:
|
||||
return "no"
|
||||
|
||||
def func4(value: str | int) -> str:
|
||||
|
Loading…
Reference in New Issue
Block a user