def _masked_url(self) -> Optional[str]: if self.cfg.dsn is not None: return misc.mask_url_pwd(self.cfg.dsn) return None
def _masked_url(self) -> Optional[str]: if self._cfg.db_url is not None: return mask_url_pwd(self._cfg.db_url) return None
def masked_url(url: Optional[str]) -> Optional[str]: if url is not None: return mask_url_pwd(url) return None