Skip to content

Fix typos and move enum stage to avoid conflict#167

Merged
iam404 merged 1 commit into
next-1.0.0from
fixes-1.0.0
May 24, 2026
Merged

Fix typos and move enum stage to avoid conflict#167
iam404 merged 1 commit into
next-1.0.0from
fixes-1.0.0

Conversation

@iam404

@iam404 iam404 commented May 24, 2026

Copy link
Copy Markdown
Member

No description provided.

@iam404 iam404 requested a review from a team as a code owner May 24, 2026 08:35
@iam404 iam404 merged commit a6ce901 into next-1.0.0 May 24, 2026
10 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 76ea00268c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


from pytfe.models.policy_evaluation import PolicyEvaluation
from pytfe.models.run import Run
from pytfe.models.run_task import Stage

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve legacy task-stage enum members

Importing Stage from run_task replaces the previously exported task_stage.Stage members (pre_plan, post_plan, etc.) with uppercase members (PRE_PLAN, ...). Any existing client code that does from pytfe.models.task_stage import Stage and references Stage.pre_plan will now raise AttributeError at runtime, which is a breaking API change for a 1.x SDK unless a compatibility alias/shim is kept.

Useful? React with 👍 / 👎.

Comment on lines +30 to 33
capabilities: RunTaskRequestCapabilities = Field(
default_factory=lambda: RunTaskRequestCapabilities(outcomes=False),
alias="capabilities",
description="The capabilities that the caller supports",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep backward alias for misspelled capabilities key

Changing the field/alias to capabilities removes support for the old capabilitites spelling with no fallback (validation_alias/alias choice), so persisted payloads or caller code built against earlier SDK versions will fail deserialization or attribute access after upgrade. For a typo fix in a stable SDK, this should remain backward-compatible (for at least one deprecation cycle) to avoid runtime breakage.

Useful? React with 👍 / 👎.

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.

1 participant