Files
wehub-resource-sync 97e91a83f3
Ruff / Ruff (push) Waiting to run
Test / Core Tests (push) Waiting to run
Test / Offline Coverage Tests (Python 3.10) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.11) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.12) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.13) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.9) (push) Waiting to run
Test / Full Coverage (Python 3.11) (push) Waiting to run
Test / Core Provider Tests (OpenAI) (push) Blocked by required conditions
Test / Core Provider Tests (Anthropic) (push) Blocked by required conditions
Test / Core Provider Tests (Google) (push) Blocked by required conditions
Test / Core Provider Tests (Other) (push) Blocked by required conditions
Test / Anthropic Tests (push) Blocked by required conditions
Test / Gemini Tests (push) Blocked by required conditions
Test / Google GenAI Tests (push) Blocked by required conditions
Test / Vertex AI Tests (push) Blocked by required conditions
Test / OpenAI Tests (push) Blocked by required conditions
Test / Writer Tests (push) Blocked by required conditions
Test / Auto Client Tests (push) Blocked by required conditions
ty / type-check (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:36:38 +08:00

49 lines
1.3 KiB
Python

"""Backward compatibility module for instructor.exceptions imports.
.. deprecated:: 1.11.0
This module is deprecated. Import exceptions from `instructor.core` instead.
For example: `from instructor.core import InstructorRetryException`
"""
import warnings
# Show deprecation warning when this module is imported
warnings.warn(
"Importing from 'instructor.exceptions' is deprecated and will be removed in a future version. "
"Please import from 'instructor.core' instead. "
"For example: 'from instructor.core import InstructorRetryException'",
DeprecationWarning,
stacklevel=2,
)
# Explicit re-exports for better IDE support and clarity
from .core.exceptions import (
AsyncValidationError,
ClientError,
ConfigurationError,
FailedAttempt,
IncompleteOutputException,
InstructorError,
InstructorRetryException,
ModeError,
MultimodalError,
ProviderError,
ResponseParsingError,
ValidationError,
)
__all__ = [
"AsyncValidationError",
"ClientError",
"ConfigurationError",
"FailedAttempt",
"IncompleteOutputException",
"InstructorError",
"InstructorRetryException",
"ModeError",
"MultimodalError",
"ProviderError",
"ResponseParsingError",
"ValidationError",
]