Skip to content

Add type annotations on base.py#423

Merged
sandrobonazzola merged 1 commit into
psss:mainfrom
sandrobonazzola:base_type
Aug 5, 2025
Merged

Add type annotations on base.py#423
sandrobonazzola merged 1 commit into
psss:mainfrom
sandrobonazzola:base_type

Conversation

@sandrobonazzola
Copy link
Copy Markdown
Collaborator

  • Add type annotations to function signatures, variables and constants in did/base.py
  • Add runtime checks for Config.parser initialization with proper error handling
  • Convert mutable default arguments from lists to tuples in items.py, matching types in base.py
  • Add return type annotations to all test functions
  • Fix test assertions to use correct module references (did.utils vs did.base)
  • Update test data structures from strings to lists for better type consistency
  • Split and reorganize test functions for better maintainability
  • Import Iterator type for proper context manager typing

- Add type annotations to function signatures, variables and constants
  in `did/base.py`
- Add runtime checks for Config.parser initialization with proper
  error handling
- Convert mutable default arguments from lists to tuples in `items.py`,
  matching types in `base.py`
- Add return type annotations to all test functions
- Fix test assertions to use correct module references
  (did.utils vs did.base)
- Update test data structures from strings to lists for better
  type consistency
- Split and reorganize test functions for better maintainability
- Import Iterator type for proper context manager typing

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
@sandrobonazzola sandrobonazzola requested a review from psss July 31, 2025 08:48
@sandrobonazzola sandrobonazzola merged commit b7aa2c6 into psss:main Aug 5, 2025
13 checks passed
@sandrobonazzola sandrobonazzola deleted the base_type branch August 5, 2025 07:14
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