mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
		| @@ -24,7 +24,7 @@ def get_new_version(version, revision): | ||||
|     else: | ||||
|         old_version = read_version().split('.') | ||||
|         if version.split('.') == old_version[:3]: | ||||
|             revision = str(int((old_version + [0])[3]) + 1) | ||||
|             revision = str(int(([*old_version, 0])[3]) + 1) | ||||
| 
 | ||||
|     return f'{version}.{revision}' if revision else version | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sepro
					sepro