Skip to content

Commit 246171d

Browse files
committed
bindings/python : remove else branch related to __all__
1 parent 7e5a3fc commit 246171d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bindings/python/proxsuite/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,5 @@ def __getattr__(name: str):
5050
def __dir__():
5151
# returns iterable of all accessible attributes in the module.
5252
# implement this for instropection, for e.g. autocomplete in interpreters (IPython).
53-
# Respect the submodule's __all__ (list of public attributes), if available
54-
if hasattr(_submodule, "__all__"):
55-
return _submodule.__all__
56-
# otherwise, return all attributes
53+
# We return the attributes from the submodule.
5754
return dir(_submodule)

0 commit comments

Comments
 (0)