Skip to content

Commit 75bf399

Browse files
committed
typing fixes
1 parent 90ae8f5 commit 75bf399

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pyff/constants.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import re
1010
import sys
1111
from distutils.util import strtobool
12-
12+
from typing import Tuple, Union, Any
1313
import pyconfig
1414
import six
1515

@@ -523,12 +523,12 @@ def help(prg):
523523
config = Config()
524524

525525

526-
def opt_eq_split(s: str) -> str:
526+
def opt_eq_split(s: str) -> Tuple[Any, Any]:
527527
for sep in [':', '=']:
528528
d = tuple(s.rsplit(sep))
529529
if len(d) == 2:
530-
return d
531-
return (None, None)
530+
return d[0], d[1]
531+
return None, None
532532

533533

534534
def parse_options(program, docs):

0 commit comments

Comments
 (0)