def is_physical_slot(value: Any) -> bool:
        """Check whether provided configuration is for permanent physical replication slot.

        :param value: configuration of the permanent replication slot.

        :returns: ``True`` if *value* is a physical replication slot, otherwise ``False``.
        """
        return not value \
            or (isinstance(value, dict) and not Cluster.is_logical_slot(cast(Dict[str, Any], value))
                and cast(Dict[str, Any], value).get('type', 'physical') == 'physical')
Check whether provided configuration is for permanent physical replication slot.

        :param value: configuration of the permanent replication slot.

        :returns: ``True`` if *value* is a physical replication slot, otherwise ``False``.
        
patroni/dcs/__init__.py