src/nitpick/style/fetchers/__init__.py
def fetch(self, url) -> StyleInfo:
        """Determine which fetcher to be used and fetch from it."""
        scheme = self._get_scheme(url)
        try:
            fetcher = self.fetchers[scheme]
        except KeyError as exc:
            raise RuntimeError(f"protocol {scheme} not supported") from exc

        if self.offline and fetcher.requires_connection:
            return None, ""

        return fetcher.fetch(url)
Determine which fetcher to be used and fetch from it.
Determine which fetcher to be used and fetch from it.
Determine which fetcher to be used and fetch from it .
def fetch(self, url) -> StyleInfo:
        scheme = self._get_scheme(url)
        try:
            fetcher = self.fetchers[scheme]
        except KeyError as exc:
            raise RuntimeError(f"protocol {scheme} not supported") from exc
        if self.offline and fetcher.requires_connection:
            return None, ""
        return fetcher.fetch(url)
def fetch ( self , url ) -> StyleInfo : scheme = self . _get_scheme ( url ) try : fetcher = self . fetchers [ scheme ] except KeyError as exc : raise RuntimeError ( f"protocol {scheme} not supported" ) from exc if self . offline and fetcher . requires_connection : return None , "" return fetcher . fetch ( url )
Determine which fetcher to be used and fetch from it.
Determine which fetcher to be used and fetch from it .
"""Determine which fetcher to be used and fetch from it."""
self
url