Skip to content

Removed obsolete sync mixin and methods#28

Open
delphikettle wants to merge 2 commits into
feature/langchain-integrationfrom
feature/delete-obsolete-sync-mixins
Open

Removed obsolete sync mixin and methods#28
delphikettle wants to merge 2 commits into
feature/langchain-integrationfrom
feature/delete-obsolete-sync-mixins

Conversation

@delphikettle

Copy link
Copy Markdown
Collaborator

No description provided.

@delphikettle
delphikettle requested review from insomnes and removed request for insomnes July 8, 2026 10:55

Copilot AI left a comment

Copy link
Copy Markdown

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 removes the obsolete synchronous HTTP client/mixin layer and consolidates the internal API client implementation around httpx.AsyncClient, making the internal _internals client surface async-only.

Changes:

  • Deleted the legacy sync/async mixins module and removed all sync overload stubs across v1 client mixins.
  • Moved request sending and API-call handling into ClientBase using httpx.AsyncClient.
  • Simplified the internal client class hierarchy to a single ContreeClient(ClientBase, V1Mixin) and updated type-check baselines accordingly.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
contree_sdk/_internals/lib/mixins.py Removes legacy sync + async mixin implementations (file deleted).
contree_sdk/_internals/lib/client_base.py Consolidates request/response lifecycle into an async-only ClientBase using AsyncClient.
contree_sdk/_internals/lib/api_decorator.py Updates decorator typing targets from the removed base client type to ClientBase.
contree_sdk/_internals/client/v1/operations.py Removes sync overloads and makes operation endpoints async-only stubs.
contree_sdk/_internals/client/v1/instances.py Removes sync overloads and makes instance endpoints async-only stubs.
contree_sdk/_internals/client/v1/inspect.py Removes sync overloads and makes inspect endpoints async-only stubs.
contree_sdk/_internals/client/v1/images.py Removes sync overloads and makes image endpoints async-only stubs.
contree_sdk/_internals/client/v1/files.py Removes sync overloads and makes file endpoints async-only stubs.
contree_sdk/_internals/client/v1/auth.py Removes sync overloads and makes auth endpoint async-only stubs.
contree_sdk/_internals/client/client.py Removes the split client base / sync client types in favor of a single async-only ContreeClient.
.ty/baseline.yaml Updates type-checker baseline to reflect removed overload-related diagnostics.

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

Comment thread contree_sdk/_internals/lib/api_decorator.py Outdated
Comment thread contree_sdk/_internals/lib/client_base.py Outdated
Comment thread contree_sdk/_internals/client/v1/images.py Outdated
@delphikettle
delphikettle force-pushed the feature/langchain-integration branch from f34564a to 41aa5c9 Compare July 10, 2026 15:36
@delphikettle
delphikettle force-pushed the feature/delete-obsolete-sync-mixins branch from 997337f to 5e3af97 Compare July 10, 2026 15:40
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.

4 participants