File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ def get_latest_version() -> Optional[str]:
2020
2121def 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments