Skip to content

Commit

Permalink
Add operations to dir(...) result on clients (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Benza <[email protected]>
  • Loading branch information
MikeBenza and Mike Benza authored Mar 25, 2021
1 parent 4a7c9ce commit 9471ae5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions almdrlib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,10 @@ def __getattr__(self, op_name):
f"'{type(self).__name__}' object has no attribute '{op_name}'"
)

def __dir__(self):
# Add in operation names
return super().__dir__() + list(self._operations.keys())


def _normalize_schema(name, schema, required=False):
properties = schema.get(OpenAPIKeyWord.PROPERTIES)
Expand Down

0 comments on commit 9471ae5

Please sign in to comment.