Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 14 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ urllib3 = ">= 1.25.3 < 3.0.0"
python-dateutil = ">= 2.8.2"
pydantic = ">= 2"
typing-extensions = ">= 4.7.1"
certifi = ">= 14.05.14"

[tool.poetry.group.dev.dependencies]
pytest = ">= 7.2.1"
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ urllib3 >= 2.1.0, < 3.0.0
python_dateutil >= 2.8.2
pydantic >= 2
typing-extensions >= 4.7.1
certifi >= 14.05.14
3 changes: 2 additions & 1 deletion templates/configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Unio
from typing_extensions import NotRequired, Self

import urllib3
import certifi

{{#hasHttpSignatureMethods}}
from {{packageName}}.signing import HttpSigningConfiguration
Expand Down Expand Up @@ -370,7 +371,7 @@ conf = {{{packageName}}}.Configuration(
Set this to false to skip verifying SSL certificate when calling API
from https server.
"""
self.ssl_ca_cert = ssl_ca_cert
self.ssl_ca_cert = ssl_ca_cert if ssl_ca_cert is not None else certifi.where()

"""Set this to verify the peer using PEM (str) or DER (bytes)
certificate data.
Expand Down
3 changes: 2 additions & 1 deletion ynab/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from typing_extensions import NotRequired, Self

import urllib3
import certifi


JSON_SCHEMA_VALIDATION_KEYWORDS = {
Expand Down Expand Up @@ -256,7 +257,7 @@ def __init__(
Set this to false to skip verifying SSL certificate when calling API
from https server.
"""
self.ssl_ca_cert = ssl_ca_cert
self.ssl_ca_cert = ssl_ca_cert if ssl_ca_cert is not None else certifi.where()

"""Set this to verify the peer using PEM (str) or DER (bytes)
certificate data.
Expand Down