(self)
return self.has_readable_server(ReadPreference.PRIMARY)
Does this topology have a writable server available?

        .. note:: When connected directly to a single server this method
          always returns ``True``.

        .. versionadded:: 3.4
Does this topology have a writable server available?
Does this topology have a writable server available?
def has_writable_server(self):
        """Does this topology have a writable server available?

        .. note:: When connected directly to a single server this method
          always returns ``True``.

        .. versionadded:: 3.4
        """
        return self.has_readable_server(ReadPreference.PRIMARY)
def has_writable_server ( self ) : return self . has_readable_server ( ReadPreference . PRIMARY )