Skip to content

refactor(python): use 3.11 builtins for UTC and TimeoutError - #4138

Merged
jmthomas merged 1 commit into
drop-python-3.10from
python-3.11-cleanups
Oct 23, 2026
Merged

jmthomas merged 1 commit into
drop-python-3.10from
python-3.11-cleanups

Conversation

@mcosgriff

Copy link
Copy Markdown
Contributor
  • Replace timezone.utc with datetime.UTC in examples, demo INST2 procedures and tsdb integration tests, dropping unused imports
  • Replace asyncio.TimeoutError with the builtin TimeoutError it aliases since 3.11, in host_interface_microservice and tests
  • Relock tools/generate_singleton_stubs.py.lock and ty_report.py.lock for requires-python >=3.11, removing the 3.10-only tomli

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

What changed

Short description of the changes in this PR

Why it changed

Link to an issue and/or a description of the rationale behind why we should merge this

Testing strategy

How you tested the change (unit tests, playwright tests, manual testing, all of the above?)

Review notes

Put anything here that you think will help reviewers understand how to approach this PR (a section they should pay particularly close attention to, a rationale for why a more obvious solution wasn't taken, how this fits into a larget set of changes, etc.)

- Replace timezone.utc with datetime.UTC in examples, demo INST2
  procedures and tsdb integration tests, dropping unused imports
- Replace asyncio.TimeoutError with the builtin TimeoutError it
  aliases since 3.11, in host_interface_microservice and tests
- Relock tools/generate_singleton_stubs.py.lock and ty_report.py.lock
  for requires-python >=3.11, removing the 3.10-only tomli

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d81bfff8-8c4d-4f47-80f8-74756defa6c0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@mcosgriff
mcosgriff requested a review from jmthomas October 23, 2026 15:17
@mcosgriff mcosgriff self-assigned this Oct 23, 2026
@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.83%. Comparing base (44249cd) to head (5d110b0).

Additional details and impacted files
@@                Coverage Diff                @@
##           drop-python-3.10    #4138   +/-   ##
=================================================
  Coverage             79.82%   79.83%           
=================================================
  Files                   907      907           
  Lines                 70039    70037    -2     
  Branches               2688     2687    -1     
=================================================
+ Hits                  55910    55911    +1     
+ Misses                13462    13460    -2     
+ Partials                667      666    -1     
Flag Coverage Δ
frontend 67.26% <ø> (-0.07%) ⬇️
python 78.46% <ø> (+<0.01%) ⬆️
ruby-api 83.49% <ø> (+0.20%) ⬆️
ruby-backend 86.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
9.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@jmthomas
jmthomas merged commit 4313faf into drop-python-3.10 Oct 23, 2026
45 of 50 checks passed
@jmthomas
jmthomas deleted the python-3.11-cleanups branch October 23, 2026 16:04
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