Skip to content

Commit

Permalink
fix: Add back griffe.agents.extensions module (deprecated)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Mar 31, 2023
1 parent 8b99baf commit 7129477
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/griffe/agents/extensions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Deprecated. Import from `griffe.extensions` instead."""

import warnings
from typing import Any

from griffe import extensions


def __getattr__(name: str) -> Any:
warnings.warn(
"The `griffe.agents.extensions` module "
"is deprecated in favor of the `griffe.extensions` module. "
"Please import from the new module instead.",
DeprecationWarning,
stacklevel=2,
)
return getattr(extensions, name)

0 comments on commit 7129477

Please sign in to comment.