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

Annotations/improve the type annotation for config #1143

Merged

Conversation

chakravarthik27
Copy link
Collaborator

This pull request includes several changes to the langtest module, focusing on adding type hints, updating method signatures, and enhancing configuration options for various transformation classes. The most important changes include the introduction of TypedDict for configuration hints, updates to method signatures to include new types, and improvements to the representation of available tests.

Type Hinting and Configuration Enhancements:

  • langtest/langtest.py: Added HarnessConfig to the import statement and updated the config parameter in the __init__ and configure methods to use HarnessConfig. [1] [2] [3]

Transformation Classes Updates:

…tilize it for improved configuration management
…ine SecurityTestsConfig and SafetyTestsConfig TypedDicts for enhanced test configuration
…ormance tests to enhance type safety and configuration structure
@chakravarthik27 chakravarthik27 self-assigned this Nov 22, 2024
@chakravarthik27 chakravarthik27 merged commit 21a9d2b into release/2.5.0 Nov 23, 2024
3 checks passed
@chakravarthik27 chakravarthik27 linked an issue Dec 24, 2024 that may be closed by this pull request
@chakravarthik27 chakravarthik27 deleted the annotations/improve-the-type-annotation-for-config branch December 24, 2024 16:26
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.

Improve the Type Annotation for Config
1 participant