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 90ae8f5 commit 75bf399Copy full SHA for 75bf399
src/pyff/constants.py
@@ -9,7 +9,7 @@
9
import re
10
import sys
11
from distutils.util import strtobool
12
-
+from typing import Tuple, Union, Any
13
import pyconfig
14
import six
15
@@ -523,12 +523,12 @@ def help(prg):
523
config = Config()
524
525
526
-def opt_eq_split(s: str) -> str:
+def opt_eq_split(s: str) -> Tuple[Any, Any]:
527
for sep in [':', '=']:
528
d = tuple(s.rsplit(sep))
529
if len(d) == 2:
530
- return d
531
- return (None, None)
+ return d[0], d[1]
+ return None, None
532
533
534
def parse_options(program, docs):
0 commit comments