Skip to content
This repository has been archived by the owner on Dec 27, 2021. It is now read-only.

Commit

Permalink
optparse.Values.__getattr__ like argparse.Namespace (python#2228)
Browse files Browse the repository at this point in the history
optparse.Values is like argparse.Namespace and also has a __getattr__() method to return the parsed options.
Apply commits 54b4983 and 9ae0c0b from python#25
  • Loading branch information
pmhahn authored and JelleZijlstra committed Jun 14, 2018
1 parent be3c43c commit 02c42c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/2and3/optparse.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,4 @@ class Values:
def ensure_value(self, attr: Any, value: Any) -> Any: ...
def read_file(self, filename: _Text, mode: _Text) -> None: ...
def read_module(self, modname: _Text, mode: _Text) -> None: ...
def __getattr__(self, name: str) -> Any: ...

0 comments on commit 02c42c9

Please sign in to comment.