Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Feb 2, 2020
1 parent df88f78 commit 1b5dbae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rich/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ def get_truecolor(self, theme: "Theme", foreground=True) -> ColorTriplet:
assert self.number is not None
return theme.ansi_colors[self.number]
elif self.type == ColorType.WINDOWS:
assert self.number is not None
return STANDARD_PALETTE[self.number]
else: # self.type == ColorType.DEFAULT:
assert self.number is None
Expand Down

0 comments on commit 1b5dbae

Please sign in to comment.