Skip to content

Commit deacb60

Browse files
committed
update 1.8.3
1 parent 1b823b8 commit deacb60

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/xulbux/cli/help.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def get_latest_version() -> Optional[str]:
2020

2121
def is_latest_version() -> Optional[bool]:
2222
try:
23-
latest = get_latest_version()
24-
if latest in ("", None): return None
23+
if (latest := get_latest_version()) in ("", None):
24+
return None
2525
latest_v_parts = tuple(int(part) for part in latest.lower().lstrip("v").split('.'))
2626
installed_v_parts = tuple(int(part) for part in __version__.lower().lstrip("v").split('.'))
2727
return latest_v_parts <= installed_v_parts

tests/test_regex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,4 +302,5 @@ def test_regex_hexa_str_no_alpha():
302302

303303
for color in invalid_colors:
304304
match = re.match(pattern, color)
305-
if match: assert match.group() != color
305+
if match:
306+
assert match.group() != color

0 commit comments

Comments
 (0)