Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
robzor92 committed May 8, 2024
1 parent e77d8af commit abe174c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/hopsworks/core/secret_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_secrets(self):
_client._send_request("GET", path_params)
)

def get_secret(self, name: str, owner: str = None):
def get_secret(self, name: str, owner: str = None) -> secret.Secret:
"""Get a secret.
# Arguments
Expand Down Expand Up @@ -73,7 +73,7 @@ def get_secret(self, name: str, owner: str = None):

return secret.Secret.from_response_json(_client._send_request("GET", path_params, query_params=query_params))[0]

def get(self, name: str, owner: str = None):
def get(self, name: str, owner: str = None) -> str:
"""Get the secret's value.
If the secret does not exist, it prompts the user to create the secret if the application is running interactively
Expand All @@ -99,7 +99,7 @@ def get(self, name: str, owner: str = None):
else:
raise e

def create_secret(self, name: str, value: str, project: str = None):
def create_secret(self, name: str, value: str, project: str = None) -> secret.Secret:
"""Create a new secret.
```python
Expand Down

0 comments on commit abe174c

Please sign in to comment.