mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-04-24 20:36:21 +02:00
Fix boolean property return types
This commit is contained in:
parent
ac5d82aab6
commit
fb2413c4aa
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ class Model(metaclass=ABCMeta):
|
|||
return self._output_type
|
||||
|
||||
@property
|
||||
def black_box_access(self) -> Any:
|
||||
def black_box_access(self) -> bool:
|
||||
"""
|
||||
Return True if the model is only available via query (API) access, i.e.,
|
||||
only the outputs of the model are exposed, and False if the model internals are also available.
|
||||
|
|
@ -98,7 +98,7 @@ class Model(metaclass=ABCMeta):
|
|||
return self._black_box_access
|
||||
|
||||
@property
|
||||
def unlimited_queries(self) -> Any:
|
||||
def unlimited_queries(self) -> bool:
|
||||
"""
|
||||
If black_box_access is True, Return whether a user can perform unlimited queries to the model API
|
||||
or whether there is a limit to the number of queries that can be submitted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue