Skip to content

Commit 2c6cad1

Browse files
committed
Add type hints for univers.utils
1 parent 8a1fc69 commit 2c6cad1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/univers/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
#
55
# Visit https://aboutcode.org and https://github.com/aboutcode-org/univers for support and download.
66

7+
from typing import Any
78

8-
def remove_spaces(string):
9+
10+
def remove_spaces(string: str) -> str:
911
return "".join(string.split())
1012

1113

12-
def cmp(x, y):
14+
def cmp(x: Any, y: Any) -> int:
1315
"""
1416
Replacement for built-in Python 2 function cmp that was removed in Python 3
1517
From https://docs.python.org/2/library/functions.html?highlight=cmp#cmp :

0 commit comments

Comments
 (0)