Skip to content

Add type annotations to set_user_context#2608

Open
Ragug wants to merge 1 commit intoelastic:mainfrom
Ragug:typing/set-user-context-annotations
Open

Add type annotations to set_user_context#2608
Ragug wants to merge 1 commit intoelastic:mainfrom
Ragug:typing/set-user-context-annotations

Conversation

@Ragug
Copy link
Copy Markdown

@Ragug Ragug commented Apr 11, 2026

What does this pull request do?

This PR enhances type clarity by adding type hints to the set_user_context function.

The following parameters are annotated:

  • username: Optional[str]
  • email: Optional[str]
  • user_id: Optional[Union[str, int]]

This is a non-functional change aimed at improving readability and supporting static analysis tools.

  - Improve type clarity for username, email, and user_id parameters.
  - This change is non-functional and only enhances static typing support.
@Ragug Ragug requested a review from a team as a code owner April 11, 2026 07:12
@cla-checker-service
Copy link
Copy Markdown

cla-checker-service bot commented Apr 11, 2026

💚 CLA has been signed

@github-actions
Copy link
Copy Markdown

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Apr 11, 2026
@Ragug
Copy link
Copy Markdown
Author

Ragug commented Apr 11, 2026

run build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-python community Issues opened by the community triage Issues awaiting triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant