Conversation
|
Looks like that HTTP Error 429: Too Many Requests issue is hitting us here too. We will need to fix that. I remember this causing an issue when I was adding the refactoring the pyi files into inline typing. But hopefully this resolves it. Have you checked using |
|
The weird thing is that on pypa/cibuildwheel#2768 and other similar recent issues, the consensus seems to be that the request bug is limited to v2 and should be fixed by upgrading to v3 (example before, example after), but we've been running 3.1.2 all this time according to the logs. A CIBW contributor pointed to GitHub's rate limiting as the culprit and linked to an announcement blog post about it, but thing is that said post was from mid-2025, and IDK why it's only hitting our (and the issue authors') CIs starting last week. Apparently the post mentioned requests without creds being limited, and I initially wondered if we needed to hook Nope I haven't touched the |
CHANGELOG.rst
Added entry
line_profiler/line_profiler.py::LineProfiler._add_namespace(...)
Removed unnecessary `typing.cast()` in default arguments
line_profiler/line_profiler_utils.py
_StrEnum
New alias which resolves:
- Statically, always to `enum.StrEnum`
- At the runtime, also thereto if available, and to
`_StrEnumBase` otherwise
StringEnum
Now always "statically" inheriting from `_StrEnum` to make
things less confusing to the type-checker
242fc57 to
6a5db86
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #427 +/- ##
==========================================
- Coverage 87.56% 82.38% -5.19%
==========================================
Files 18 20 +2
Lines 1641 2254 +613
Branches 348 359 +11
==========================================
+ Hits 1437 1857 +420
- Misses 149 300 +151
- Partials 55 97 +42
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Closes #426.
CHANGELOG.rstAdded entry
line_profiler/line_profiler.py::LineProfiler._add_namespace(...)Removed now-unnecessary
typing.cast()in default argumentsline_profiler/line_profiler_utils.py_StrEnumNew alias which resolves:
enum.StrEnum_StrEnumBaseotherwiseStringEnumNow "always" "statically" inheriting from
_StrEnumto make things less confusing to the type-checker