Skip to content

Commit

Permalink
Merge pull request #176 from Toloka/stubs
Browse files Browse the repository at this point in the history
Autogenerated stubs
  • Loading branch information
alexdrydew authored Feb 24, 2023
2 parents b0e658d + c82f3b8 commit 3ecf810
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/async_client/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ __all__ = [
import datetime
import decimal
import pandas
import ssl
import toloka.client
import toloka.client.aggregation
import toloka.client.analytics_request
Expand Down Expand Up @@ -53,7 +54,8 @@ class AsyncTolokaClient:
url: typing.Optional[str] = None,
retry_quotas: typing.Union[typing.List[str], str, None] = 'MIN',
retryer_factory: typing.Optional[typing.Callable[[], urllib3.util.retry.Retry]] = None,
act_under_account_id: typing.Optional[str] = None
act_under_account_id: typing.Optional[str] = None,
verify: typing.Union[str, bool, ssl.SSLContext] = True
): ...

def __getattr__(self, name):
Expand Down
8 changes: 7 additions & 1 deletion src/client/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ import datetime
import decimal
import enum
import pandas
import ssl
import toloka.client.aggregation
import toloka.client.analytics_request
import toloka.client.app
Expand Down Expand Up @@ -235,6 +236,10 @@ class TolokaClient:
All requests will be made using a specified account. See [Shared access to the requester's account](https://toloka.ai/en/docs/guide/concepts/multiple-access)
documentation page. ID of the requester can be retrieved using the [get_requester](toloka.client.TolokaClient.get_requester.md)
method (this method should be called by the account owner using account's token).
verify: SSL certificates (a.k.a CA bundle) used to
verify the identity of requested hosts. Either `True` (default CA bundle),
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
(which will disable verification)
Example:
How to create `TolokaClient` instance and make your first request to Toloka.
Expand Down Expand Up @@ -266,7 +271,8 @@ class TolokaClient:
url: typing.Optional[str] = None,
retry_quotas: typing.Union[typing.List[str], str, None] = 'MIN',
retryer_factory: typing.Optional[typing.Callable[[], urllib3.util.retry.Retry]] = None,
act_under_account_id: typing.Optional[str] = None
act_under_account_id: typing.Optional[str] = None,
verify: typing.Union[str, bool, ssl.SSLContext] = True
): ...

@typing.overload
Expand Down
10 changes: 10 additions & 0 deletions src/client/filter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,16 @@ class OSFamily(Computed, toloka.client.primitives.operators.IdentityConditionMix

class OSFamily(toloka.util._extendable_enum.ExtendableStrEnum):
"""OS families.
Attributes:
WINDOWS: Microsoft Windows operating system developed and marketed by Microsoft for personal computers.
OS_X: macOS operating system developed by Apple Inc. since 2001 for Mac computers.
MAC_OS: Classic Mac OS operating system developed by Apple Inc. before 2001 for the Macintosh family of personal computers.
LINUX: A family of open-source Unix-like operating systems based on the Linux kernel.
BSD: An operating system based on Research Unix, developed and distributed by the CSRG, and its open-source descendants like FreeBSD, OpenBSD, NetBSD, and DragonFly BSD.
ANDROID: Android mobile operating system based on a modified version of the Linux kernel, designed primarily for touchscreen mobile devices.
IOS: iOS mobile operating system developed by Apple Inc. exclusively for its mobile devices.
BLACKBERRY: BlackBerry OS mobile operating system developed by BlackBerry Limited for its BlackBerry smartphone devices.
"""

WINDOWS = 'WINDOWS'
Expand Down

0 comments on commit 3ecf810

Please sign in to comment.