Skip to content

Commit 27d37b7

Browse files
committed
refactor: consider restoring UserWarning
1 parent 402548b commit 27d37b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdformat/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def make_arg_parser(
309309
plugin_file, plugin_line = get_source_file_and_line(plugin)
310310
warnings.warn_explicit(
311311
f"The `default` ({action.default}) for {action.option_strings} from the '{plugin_id}' plugin, will always override any value configured in TOML. The only supported CLI defaults are `None` or `argparse.SUPPRESS`. To resolve, consider refactoring to `.add_argument(..., default=None)` ", # noqa: E501
312-
DeprecationWarning,
312+
UserWarning,
313313
filename=plugin_file,
314314
lineno=plugin_line,
315315
)

0 commit comments

Comments
 (0)