Skip to content

Commit

Permalink
Fix types for parameters that are passed to requests library. Add str…
Browse files Browse the repository at this point in the history
… type hint for url, token
  • Loading branch information
OBarronCS committed Oct 13, 2024
1 parent e63f9a2 commit 36ec2b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pycti/api/opencti_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ class OpenCTIApiClient:
:param log_level: log level for the client
:type log_level: str, optional
:param ssl_verify: Requiring the requests to verify the TLS certificate at the server.
:type ssl_verify: bool, optional
:type ssl_verify: bool, str, optional
:param proxies:
:type proxies: dict, optional, The proxy configuration, would have `http` and `https` attributes. Defaults to {}
```
proxies: {
"http: "http://my_proxy:8080"
"https: "http://my_proxy:8080"
"http": "http://my_proxy:8080"
"https": "http://my_proxy:8080"
}
```
:param json_logging: format the logs as json if set to True
Expand All @@ -102,14 +102,14 @@ class OpenCTIApiClient:

def __init__(
self,
url,
token,
url: str,
token: str,
log_level="info",
ssl_verify=False,
proxies=None,
ssl_verify: bool | str = False,
proxies: dict[str,str] | None = None,
json_logging=False,
bundle_send_to_queue=True,
cert=None,
cert: str | tuple[str, str] |None = None,
auth=None,
perform_health_check=True,
):
Expand Down

0 comments on commit 36ec2b8

Please sign in to comment.