Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes: resolving the bugs 2_6_0rc versions #1182

Open
wants to merge 3 commits into
base: release/2.6.0
Choose a base branch
from

Conversation

chakravarthik27
Copy link
Collaborator

This pull request includes a change to the __init__ method in langtest/langtest.py to handle the case where additional_info might be None.

  • langtest/langtest.py: Modified the additional_info assignment to safely handle the case where additional_info is None by using an empty dictionary as a fallback.

Issues:

@chakravarthik27 chakravarthik27 self-assigned this Feb 27, 2025

Choose a reason for hiding this comment

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

PR Overview

This PR addresses the potential issue of additional_info being None during initialization by using an empty dictionary as a fallback.
Key changes:

  • Updated the init method to safely merge additional_info with model_parameters.
  • Prevents TypeError during dictionary unpacking when additional_info is None.

Reviewed Changes

File Description
langtest/langtest.py Modified additional_info assignment to use an empty dict fallback

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

@chakravarthik27 chakravarthik27 changed the title fix: handle potential None value in additional_info during model para… fixes: resolving the bugs 2_6_0rc versions Feb 27, 2025
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