mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
optparse: add_option Option argument is positional only (#11952)
This commit is contained in:
@@ -151,7 +151,7 @@ class OptionContainer:
|
||||
def _create_option_mappings(self) -> None: ...
|
||||
def _share_option_mappings(self, parser: OptionParser) -> None: ...
|
||||
@overload
|
||||
def add_option(self, opt: Option) -> Option: ...
|
||||
def add_option(self, opt: Option, /) -> Option: ...
|
||||
@overload
|
||||
def add_option(self, arg: str, /, *args: str | None, **kwargs) -> Option: ...
|
||||
def add_options(self, option_list: Iterable[Option]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user