mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
optparse.Values.__getattr__ like argparse.Namespace (#2228)
optparse.Values is like argparse.Namespace and also has a __getattr__() method to return the parsed options. Apply commits54b4983and9ae0c0bfrom python/typeshed#25
This commit is contained in:
committed by
Jelle Zijlstra
parent
be3c43cf63
commit
02c42c9cf6
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user