Issue #19172: Add a get_map() method to selectors.
diff --git a/Doc/library/selectors.rst b/Doc/library/selectors.rst
index ece5e7d..e3ebd25 100644
--- a/Doc/library/selectors.rst
+++ b/Doc/library/selectors.rst
@@ -164,6 +164,14 @@
This returns the :class:`SelectorKey` instance associated to this file
object, or raises :exc:`KeyError` if the file object is not registered.
+ .. method:: get_map()
+
+ Return a mapping of file objects to selector keys.
+
+ This returns a :class:`~collections.abc.Mapping` instance mapping
+ registered file objects to their associated :class:`SelectorKey`
+ instance.
+
.. class:: DefaultSelector()