Skip to content

Conversation

@amber-Chen-86
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copy link
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 pull request fixes pyright type checking issues in the azure-ai-textanalytics-authoring SDK by addressing security and type safety concerns in the serialization utilities.

Changes:

  • Updated TypeSpec location configuration to point to the new spec directory path
  • Replaced unsafe eval() calls with explicit type conversions for better security and type safety
  • Added cast() type hint for pyright compliance in enum type handling

Reviewed changes

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

File Description
tsp-location.yaml Updated the TypeSpec specification directory path and commit reference to align with the new repository structure
azure/ai/textanalytics/authoring/_utils/serialization.py Improved type safety by adding cast() for enum types and replaced eval() with explicit type conversions; added proper error handling and updated documentation

@amber-Chen-86 amber-Chen-86 marked this pull request as draft January 22, 2026 18:19
@github-actions
Copy link

github-actions bot commented Jan 22, 2026

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-ai-textanalytics

@amber-Chen-86 amber-Chen-86 changed the title [Textanalytics authoring] fix pyright for next version [Textanalytics] fix pylint/pyright for next version Jan 26, 2026
@amber-Chen-86 amber-Chen-86 marked this pull request as ready for review January 27, 2026 01:28
@amber-Chen-86 amber-Chen-86 marked this pull request as draft January 27, 2026 23:32
@amber-Chen-86 amber-Chen-86 marked this pull request as ready for review January 28, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant