Skip to content

Add os.PathLike[str] type to ssl_ca_certs#2676

Merged
Kludex merged 4 commits intoKludex:mainfrom
rnv812:master
Sep 23, 2025
Merged

Add os.PathLike[str] type to ssl_ca_certs#2676
Kludex merged 4 commits intoKludex:mainfrom
rnv812:master

Conversation

@rnv812
Copy link
Copy Markdown
Contributor

@rnv812 rnv812 commented Aug 7, 2025

Summary

In Config class for parameter ssl_ca_certs we can actually add os.PathLike[str] type for compatibility with pathlib.Path instances.

There is only one place where self.ssl_ca_certs attribute is used - it is in load method in creating ssl context and its parameter ca_certs fully accept that type.

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

@Kludex Kludex changed the title Update type of ssl_ca_certs parameter Add os.PathLike[str] type to ssl_ca_certs Sep 23, 2025
@Kludex Kludex enabled auto-merge (squash) September 23, 2025 13:20
@Kludex Kludex merged commit 8c057fa into Kludex:main Sep 23, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants