Skip to content

Conversation

@heyaibi
Copy link
Contributor

@heyaibi heyaibi commented Feb 26, 2025

Changes

User Agent

  • Added a User-Agent header.
  • Moved the version literal __version__ to a separate file to prevent circular referencing.

Rename "OCRPreset" to "OcrPreset"

This pull request refactors the OCRPreset class to OcrPreset across the codebase for consistency in naming conventions.

  • Renamed OCRPreset to OcrPreset in files like README.md, anyparser_core/__init__.py, and examples.
  • Updated variable names and documentation to reflect the new class name.
  • Modified test files to use the updated class.

This change is purely a refactor with no functional impact, aiming for consistency and improved readability.

Breaking Changes

The class OCRPreset has been renamed to OcrPreset to maintain consistency in naming conventions.

Migration Guide

Search and replace all instances of OCRPreset with OcrPreset in your codebase.

- Added a User-Agent header.
- Moved the version literal `__version__` to a separate file to prevent circular referencing.
This pull request refactors the OCRPreset class to OcrPreset across the codebase for consistency in naming conventions.

- Renamed OCRPreset to `OcrPreset` in files like `README.md`, `anyparser_core/__init__.py`, and examples.
- Updated variable names and documentation to reflect the new class name.
- Modified test files to use the updated class.

This change is purely a refactor with no functional impact, aiming for consistency and improved readability.
@heyaibi heyaibi merged commit cae9428 into master Feb 26, 2025
4 checks passed
@heyaibi heyaibi deleted the release/1.0.2 branch February 26, 2025 07:48
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.

2 participants