def METHOD_NAME(self, obj: IOBase, eventmask: int = POLLIN | POLLOUT, /) -> None:
    """
  Register `stream` *obj* for polling. *eventmask* is logical OR of:
  * ``select.POLLIN``  - data available for reading
  * ``select.POLLOUT`` - more data can be written
  Note that flags like ``select.POLLHUP`` and ``select.POLLERR`` are
  *not* valid as input eventmask (these are unsolicited events which
  will be returned from `poll()` regardless of whether they are asked
  for). This semantics is per POSIX.
  *eventmask* defaults to ``select.POLLIN | select.POLLOUT``.
  It is OK to call this function multiple times for the same *obj*.
  Successive calls will update *obj*'s eventmask to the value of
  *eventmask* (i.e. will behave as `modify()`).
  """