Skip to content

Commit b3c86bd

Browse files
authored
Fix type of of optparse.Option's _{check,set}_opt_strings() methods (#3895)
1 parent 00f5240 commit b3c86bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/2and3/optparse.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ class Option:
111111
def _check_const(self) -> None: ...
112112
def _check_dest(self) -> None: ...
113113
def _check_nargs(self) -> None: ...
114-
def _check_opt_strings(self, opts: Optional[_Text]) -> Any: ...
114+
def _check_opt_strings(self, opts: Iterable[Optional[_Text]]) -> List[_Text]: ...
115115
def _check_type(self) -> None: ...
116116
def _set_attrs(self, attrs: Dict[_Text, Any]) -> None: ...
117-
def _set_opt_strings(self, opts: _Text) -> None: ...
117+
def _set_opt_strings(self, opts: Iterable[_Text]) -> None: ...
118118
def check_value(self, opt: Any, value: Any) -> Any: ...
119119
def convert_value(self, opt: Any, value: Any) -> Any: ...
120120
def get_opt_string(self) -> _Text: ...

0 commit comments

Comments
 (0)