Skip to content

Commit

Permalink
fix E721: use isinstance when comparing types
Browse files Browse the repository at this point in the history
  • Loading branch information
adehad committed Jan 15, 2024
1 parent b40282f commit 543ae15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edgedb/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_color() -> Color:

if COLOR is None:
COLOR = Color()
if type(USE_COLOR) is bool:
if isinstance(USE_COLOR, bool):
use_color = USE_COLOR
else:
try:
Expand Down

0 comments on commit 543ae15

Please sign in to comment.