We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a1fc69 commit 2c6cad1Copy full SHA for 2c6cad1
src/univers/utils.py
@@ -4,12 +4,14 @@
4
#
5
# Visit https://aboutcode.org and https://github.com/aboutcode-org/univers for support and download.
6
7
+from typing import Any
8
-def remove_spaces(string):
9
+
10
+def remove_spaces(string: str) -> str:
11
return "".join(string.split())
12
13
-def cmp(x, y):
14
+def cmp(x: Any, y: Any) -> int:
15
"""
16
Replacement for built-in Python 2 function cmp that was removed in Python 3
17
From https://docs.python.org/2/library/functions.html?highlight=cmp#cmp :
0 commit comments