From a60217f8984fb5b0f548b8aab0d9045891befa30 Mon Sep 17 00:00:00 2001 From: EXPLOSION Date: Thu, 2 Nov 2023 02:26:04 -0400 Subject: [PATCH 1/2] Add removals as a newsfragment type --- newsfragments/2842.deprecated.rst | 1 + newsfragments/2842.removal.rst | 1 - pyproject.toml | 5 +++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 newsfragments/2842.deprecated.rst delete mode 100644 newsfragments/2842.removal.rst diff --git a/newsfragments/2842.deprecated.rst b/newsfragments/2842.deprecated.rst new file mode 100644 index 0000000000..8532346b8b --- /dev/null +++ b/newsfragments/2842.deprecated.rst @@ -0,0 +1 @@ +Deprecated support for ``math.inf`` for the ``backlog`` argument in ``open_tcp_listeners``, making its docstring correct in the fact that only ``TypeError``s are raised if invalid arguments are passed. diff --git a/newsfragments/2842.removal.rst b/newsfragments/2842.removal.rst deleted file mode 100644 index c249956bae..0000000000 --- a/newsfragments/2842.removal.rst +++ /dev/null @@ -1 +0,0 @@ -Removed support for ``math.inf`` for the ``backlog`` argument in ``open_tcp_listeners``, making its docstring correct in the fact that only ``TypeError``s are raised if invalid arguments are passed. diff --git a/pyproject.toml b/pyproject.toml index 32900ff72f..e7422591f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,6 +148,11 @@ directory = "deprecated" name = "Deprecations and removals" showcontent = true +[[tool.towncrier.type]] +directory = "removal" +name = "Removals without deprecations" +showcontent = true + [[tool.towncrier.type]] directory = "misc" name = "Miscellaneous internal changes" From f468504366f4d651b1467642fc9fe2a37de14de4 Mon Sep 17 00:00:00 2001 From: A5rocks Date: Thu, 2 Nov 2023 15:34:08 +0900 Subject: [PATCH 2/2] Fix Sphinx build issue --- newsfragments/2842.deprecated.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newsfragments/2842.deprecated.rst b/newsfragments/2842.deprecated.rst index 8532346b8b..1a2ede5022 100644 --- a/newsfragments/2842.deprecated.rst +++ b/newsfragments/2842.deprecated.rst @@ -1 +1 @@ -Deprecated support for ``math.inf`` for the ``backlog`` argument in ``open_tcp_listeners``, making its docstring correct in the fact that only ``TypeError``s are raised if invalid arguments are passed. +Deprecated support for ``math.inf`` for the ``backlog`` argument in ``open_tcp_listeners``, making its docstring correct in the fact that only ``TypeError`` is raised if invalid arguments are passed.