diff --git a/quantecon/lqnash.py b/quantecon/lqnash.py index bc2d622f..36e4f016 100644 --- a/quantecon/lqnash.py +++ b/quantecon/lqnash.py @@ -14,7 +14,7 @@ def __dir__(): def __getattr__(name): - if name not in __all__: + if name != 'nnash': raise AttributeError( "`quantecon.lqnash` is deprecated and has no attribute " f"'{name}'." @@ -25,4 +25,4 @@ def __getattr__(name): f" the following instead:\n `from quantecon import {name}`.", category=DeprecationWarning, stacklevel=2) - return getattr(_lqnash, name) + return _lqnash.nnash