Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
- deprecate module_import
  • Loading branch information
devkral committed Nov 18, 2024
1 parent 57bf99f commit 30a1d41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ hide:
An automatic registration is assumed. See [Connection](connection.md) for examples.
- Breaking: `--app` or `EDGY_DEFAULT_APP` must point to a module which does the self-registration not an app instance anymore.
- Deprecate `edgy.conf.enums.EnvironmentType`. Esmeralds `EnvironmentType` or an own definition should be used instead.
- Deprecate `edgy.conf.module_import.import_string`. Use `monkay.load` instead.

### Fixed

Expand Down
7 changes: 7 additions & 0 deletions edgy/conf/module_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from importlib import import_module
from typing import Any
from warnings import warn

warn(
"This module is deprecated. Use `monkay.load` instead.",
DeprecationWarning,
stacklevel=2,
)


def import_string(dotted_path: str) -> Any:
Expand Down

0 comments on commit 30a1d41

Please sign in to comment.