Skip to content

Commit e8eaf36

Browse files
Update mypy/config_parser.py: object not Any
Ah, this should be object, not Any, shouldn't it? And while I'm at it, I can simplify the split regex
1 parent f21dd93 commit e8eaf36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def parse_version(v: str | float) -> tuple[int, int]:
6060
return major, minor
6161

6262

63-
def try_split(v: str | Sequence[str] | Any, split_regex: str = "[,]") -> list[str]:
63+
def try_split(v: str | Sequence[str] | object, split_regex: str = ",") -> list[str]:
6464
"""Split and trim a str or sequence (eg: list) of str into a list of str.
6565
If an element of the input is not str, a type error will be raised."""
6666

0 commit comments

Comments
 (0)