-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix type of SSLContext for some static type checkers #10099
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #10099 +/- ##
=======================================
Coverage 98.74% 98.75%
=======================================
Files 122 122
Lines 36956 36954 -2
Branches 4411 4411
=======================================
Hits 36494 36494
+ Misses 315 313 -2
Partials 147 147
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
CodSpeed Performance ReportMerging #10099 will not alter performanceComparing Summary
|
We've been using this without issue for quite some time. You'll need to provide a reproducer demonstrating the bug you're claiming to fix. |
I don't even know if the try/except is needed these days. I don't know of a Python distribution being shipped without the |
Yep, maybe it's time to remove it then. |
Python itself support the build without ssl. |
What does |
https://github.com/aio-libs/aiohttp/actions/runs/12192823875/job/34014087992?pr=10099
|
That was my suggestion, have added to spelling list. Coverage is good now too. |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 6200513 on top of patchback/backports/3.11/6200513d8fd34a820a4d10d238ca92d9f73ce7ee/pr-10099 Backporting merged PR #10099 into master
🤖 @patchback |
Backport to 3.12: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 6200513 on top of patchback/backports/3.12/6200513d8fd34a820a4d10d238ca92d9f73ce7ee/pr-10099 Backporting merged PR #10099 into master
🤖 @patchback |
(cherry picked from commit 6200513)
(cherry picked from commit 6200513)
(cherry picked from commit 6200513) Co-authored-by: AlanBogarin <[email protected]>
(cherry picked from commit 6200513) Co-authored-by: AlanBogarin <[email protected]>
What do these changes do?
Fix partially unknown bug in all references to SSLContext
Are there changes in behavior for the user?
No, it's only for type checkers
Is it a substantial burden for the maintainers to support this?
No, it only requires knowledge of run-time and type checking.
Checklist
CONTRIBUTORS.txt
CHANGES/
foldername it
<issue_or_pr_num>.<type>.rst
(e.g.588.bugfix.rst
)if you don't have an issue number, change it to the pull request
number after creating the PR
.bugfix
: A bug fix for something the maintainers deemed animproper undesired behavior that got corrected to match
pre-agreed expectations.
.feature
: A new behavior, public APIs. That sort of stuff..deprecation
: A declaration of future API removals and breakingchanges in behavior.
.breaking
: When something public is removed in a breaking way.Could be deprecated in an earlier release.
.doc
: Notable updates to the documentation structure or buildprocess.
.packaging
: Notes for downstreams about unobvious side effectsand tooling. Changes in the test invocation considerations and
runtime assumptions.
.contrib
: Stuff that affects the contributor experience. e.g.Running tests, building the docs, setting up the development
environment.
.misc
: Changes that are hard to assign to any of the abovecategories.
Make sure to use full sentences with correct case and punctuation,
for example:
Use the past tense or the present tense a non-imperative mood,
referring to what's changed compared to the last released version
of this project.