Skip to content

Commit

Permalink
[typing-] lower python versions don't support type | type
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 17, 2023
1 parent e8884ff commit 08f620b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _split_colorstr(self, colorstr):

return fgbgattrs

def _get_colornum(self, colorname:str|int, default:int=-1) -> int:
def _get_colornum(self, colorname:'str|int', default:int=-1) -> int:
'Return terminal color number for colorname.'
if isinstance(colorname, int):
return colorname
Expand Down

0 comments on commit 08f620b

Please sign in to comment.