Skip to content

Commit

Permalink
Extend deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
amureki committed Aug 20, 2024
1 parent ef21347 commit a724dac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion model_bakery/random_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ def gen_slug(max_length: int) -> str:

def gen_text() -> str:
warnings.warn(
"gen_text is deprecated, use gen_string instead",
"\n"
"Accessing `model_bakery.random_gen.gen_text` is deprecated "
"and will be removed in a future major release. Please use "
"`model_bakery.random_gen.gen_string` instead."
"\n",
DeprecationWarning,
stacklevel=2,
)
Expand Down

0 comments on commit a724dac

Please sign in to comment.