pmb: Add more type hints (MR 2490)

This commit is contained in:
Newbyte 2024-11-15 14:01:31 +01:00
parent 206ba62417
commit 5ed5817e80
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
36 changed files with 174 additions and 120 deletions

View file

@ -20,7 +20,7 @@ import pmb.helpers.pmaports
import pmb.helpers.repo
def remove_operators(package):
def remove_operators(package: str) -> str:
for operator in [">", ">=", "<=", "=", "<", "~"]:
if operator in package:
package = package.split(operator)[0]