Skip to content

Commit

Permalink
deprecated list function correction
Browse files Browse the repository at this point in the history
  • Loading branch information
korgan00 committed Oct 11, 2024
1 parent ba6684c commit a3c0809
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/qiskit_serverless/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,14 @@ def get(
)
return self.get_function(title, provider=provider)

def list(
self, title: str, provider: Optional[str] = None
) -> Optional[QiskitFunction]:
def list(self, **kwargs) -> List[QiskitFunction]:
warnings.warn(
"`list` method has been deprecated. "
"And will be removed in future releases. "
"Please, use `get_functions` instead.",
DeprecationWarning,
)
return self.get_functions(title, provider=provider)
return self.get_functions(kwargs)

#####################
####### FILES #######
Expand Down

0 comments on commit a3c0809

Please sign in to comment.