Skip to content

Annotations/improve the type annotation for config#1143

Merged
chakravarthik27 merged 14 commits intorelease/2.5.0from
annotations/improve-the-type-annotation-for-config
Nov 23, 2024
Merged

Annotations/improve the type annotation for config#1143
chakravarthik27 merged 14 commits intorelease/2.5.0from
annotations/improve-the-type-annotation-for-config

Conversation

@chakravarthik27
Copy link
Copy Markdown
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
@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