Skip to content

Commit 543ae15

Browse files
committed
fix E721: use isinstance when comparing types
1 parent b40282f commit 543ae15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: edgedb/color.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_color() -> Color:
2424

2525
if COLOR is None:
2626
COLOR = Color()
27-
if type(USE_COLOR) is bool:
27+
if isinstance(USE_COLOR, bool):
2828
use_color = USE_COLOR
2929
else:
3030
try:

0 commit comments

Comments
 (0)