PTHMINT-41: Fix error ANN003 occurences #13
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes updates to type annotations and configuration files to improve code clarity and maintainability. The most important changes involve refining type hints in constructors and updating the
pyproject.tomlfile to adjust linting rules.Type annotation improvements:
src/multisafepay/api/base/listings/listing.py: Updated the__init__method in theListingclass to use more precise type annotations, includinglist[Any]for thedataparameter anddict[str, Any]for**kwargs.src/multisafepay/api/base/response/custom_api_response.py: Modified the__init__method in theCustomApiResponseclass to includedict[str, Any]as the type for**kwargs.Configuration updates:
pyproject.toml: Removed theANN003rule from theignorelist, ensuring stricter adherence to type annotation guidelines.