Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tych0 committed Mar 31, 2024
1 parent 4e6bd1e commit cffad01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libqtile/command/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def call(self, data: tuple[list[SelectorType], str, tuple, dict]) -> tuple[int,

def lift_arg(typ, arg):
# for stuff like int | None, allow either
if get_origin(typ) is types.UnionType:
if get_origin(typ) in [types.UnionType, typing.Union]:
for t in get_args(typ):
if t == types.NoneType:
# special case None? I don't know what this looks like
Expand Down

0 comments on commit cffad01

Please sign in to comment.