Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sagemcom_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import json
import math
import random
from ssl import SSLContext
from types import TracebackType
from typing import Any
import urllib.parse
Expand Down Expand Up @@ -78,6 +79,7 @@
session: ClientSession | None = None,
ssl: bool | None = False,
verify_ssl: bool | None = True,
ssl_context: SSLContext | None = None
):
"""
Create a SagemCom client.
Expand Down Expand Up @@ -106,8 +108,9 @@
else ClientSession(
headers={"User-Agent": f"{DEFAULT_USER_AGENT}"},
timeout=ClientTimeout(DEFAULT_TIMEOUT),
connector=TCPConnector(

Check failure on line 111 in sagemcom_api/client.py

View workflow job for this annotation

GitHub Actions / Python 3.9

Argument "verify_ssl" to "TCPConnector" has incompatible type "Optional[bool]"; expected "bool" [arg-type]

Check failure on line 111 in sagemcom_api/client.py

View workflow job for this annotation

GitHub Actions / Python 3.10

Argument "verify_ssl" to "TCPConnector" has incompatible type "bool | None"; expected "bool" [arg-type]

Check failure on line 111 in sagemcom_api/client.py

View workflow job for this annotation

GitHub Actions / Python 3.11

Argument "verify_ssl" to "TCPConnector" has incompatible type "bool | None"; expected "bool" [arg-type]

Check failure on line 111 in sagemcom_api/client.py

View workflow job for this annotation

GitHub Actions / Python 3.12

Argument "verify_ssl" to "TCPConnector" has incompatible type "bool | None"; expected "bool" [arg-type]
verify_ssl=verify_ssl if verify_ssl is not None else True
verify_ssl=verify_ssl,
ssl_context=ssl_context
),
)
)
Expand Down
Loading