Skip to content

[Python] Feat: 1.22.16#2952

Merged
mrkaye97 merged 2 commits intomainfrom
mk/py-1-22-16
Feb 5, 2026
Merged

[Python] Feat: 1.22.16#2952
mrkaye97 merged 2 commits intomainfrom
mk/py-1-22-16

Conversation

@mrkaye97
Copy link
Copy Markdown
Contributor

@mrkaye97 mrkaye97 commented Feb 5, 2026

Description

Merges some small improvements + bug fixes from #2942 and #2933

Type of change

  • Bug fix (non-breaking change which fixes an issue)

BloggerBust and others added 2 commits February 5, 2026 09:23
)

* feat(sdk): improve python REST client transport error diagnostics

Refs #2872

* chore(sdk/python): bump version to 1.22.16
…2933)

* fix: change from asyncio.iscoroutinefunction to inspect.iscoroutinefunction

* chore: bump

---------

Co-authored-by: matt <mrkaye97@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hatchet-docs Ready Ready Preview, Comment Feb 5, 2026 2:27pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps the Python SDK version to 1.22.16, incorporating two key improvements: migrating from the deprecated asyncio.iscoroutinefunction to inspect.iscoroutinefunction, and enhancing REST client error diagnostics with more comprehensive exception handling and contextual information.

Changes:

  • Migrated three functions in types.py to use inspect.iscoroutinefunction instead of the deprecated asyncio.iscoroutinefunction
  • Expanded REST client exception handling to catch SSL, connection timeout, read timeout, max retry, new connection, and protocol errors, with enriched error messages including method, URL, and timeout information
  • Added a new patch function to automatically apply REST client error diagnostic improvements to generated code

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdks/python/pyproject.toml Version bump from 1.22.15 to 1.22.16
sdks/python/hatchet_sdk/runnables/types.py Added inspect import and migrated three type guard functions to use inspect.iscoroutinefunction
sdks/python/hatchet_sdk/clients/rest/rest.py Enhanced exception handling to catch multiple urllib3 transport errors and provide detailed diagnostic context
sdks/python/apply_patches.py Added patch_rest_error_diagnostics function to apply REST client improvements via regex-based patching
sdks/python/CHANGELOG.md Documented the changes for version 1.22.16

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mrkaye97 mrkaye97 merged commit 0016f66 into main Feb 5, 2026
19 checks passed
@mrkaye97 mrkaye97 deleted the mk/py-1-22-16 branch February 5, 2026 14:41
@mrkaye97 mrkaye97 review requested due to automatic review settings March 23, 2026 22:19
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.

5 participants