diff --git a/bindings/pydrake/common/deprecation.py b/bindings/pydrake/common/deprecation.py index 4e2e141297f8..5855c8ab3c77 100644 --- a/bindings/pydrake/common/deprecation.py +++ b/bindings/pydrake/common/deprecation.py @@ -98,12 +98,7 @@ def _install(cls, name, handler): class DrakeDeprecationWarning(DeprecationWarning): """Extends `DeprecationWarning` to permit Drake-specific warnings to be filtered by default, without having side effects on other libraries.""" - addendum = ("\n Please see `help(pydrake.common.deprecation)` " + - "for more information.") - - def __init__(self, message, *args): - extra_message = message + DrakeDeprecationWarning.addendum - DeprecationWarning.__init__(self, extra_message, *args) + pass def _warn_deprecated(message, stacklevel=2): diff --git a/bindings/pydrake/common/test/deprecation_test.py b/bindings/pydrake/common/test/deprecation_test.py index 6181e9b71837..2d883034b68c 100644 --- a/bindings/pydrake/common/test/deprecation_test.py +++ b/bindings/pydrake/common/test/deprecation_test.py @@ -136,7 +136,6 @@ def test_module_autocomplete(self): def _check_warning(self, item, message_expected, check_full=True): self.assertEqual(item.category, DrakeDeprecationWarning) if check_full: - message_expected += DrakeDeprecationWarning.addendum self.assertEqual(message_expected, str(item.message)) else: self.assertIn(message_expected, str(item.message))