Pyright type checking has been set to basic for now.
The pre-commit hooks for `ruff-pre-commit` and `pyright-python` have been updated to their latest versions for code quality improvements. The `pre-commit-config` and `pyproject.toml` files were modified to reflect these changes.
Also, the error handler has been completely rewritten in a more flexible and scalable manner, addressing various error scenarios in a cleaner and clearer way. Individual error handling methods for common cases are now in place, making it easier to extend with more exception types in the future.
Removed some unused references to the old error handler in the main application file, simplifying the logic there. The `pyright` type checking configuration in `pyproject.toml` was also adjusted for less strict checking, better suited to our current project requirements.
Lastly, the lockfile `poetry.lock` was updated and unnecessarily tagged "dev" packages were removed.
In the wake of these changes, be mindful that the behaviour of error prompts to the user and of type checks may slightly differ.
Additional notes include punctuation and formatting adjustments to improve readability throughout the files changed.