This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds deprecation note on function_modifiers_base
- Loading branch information
1 parent
2da1fc0
commit a78ff0c
Showing
2 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
# Quick hack to make this a backwards compatible refactor | ||
# This allows us to define everything within the function_modifiers directory, and just refer to that | ||
# While maintaining old imports | ||
import logging | ||
|
||
from hamilton.function_modifiers.base import * # noqa F403 | ||
|
||
logger = logging.getLogger(__name__) | ||
logger.warning( | ||
"Import of this module is deprecated, and will be removed in a 2.0 release. In fact, " | ||
"this is not a public-facing API, so if you're hitting this message either we're internally " | ||
"importing the wrong one or you're doing something fancy. Either way, \n" | ||
"please replace with `from hamilton.function_modifiers import base as fm_base`." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters