Skip to content

Commit

Permalink
deprecate module_import (#233)
Browse files Browse the repository at this point in the history
Changes:

- deprecate module_import module
- fix typo
  • Loading branch information
devkral authored Nov 18, 2024
1 parent 57bf99f commit f98fe85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hide:

# Release Notes

## 0.23
## 0.23.0

### Added

Expand All @@ -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 f98fe85

Please sign in to comment.