def from_text(cls, text, lazy=False):
        """\
        Make a `DecodedURL` instance from any text string containing a URL.

        Args:
          text (unicode): Text containing the URL
          lazy (bool): Whether to pre-decode all parts of the URL to
              check for validity. Defaults to True.
        """
        _url = URL.from_text(text)
        return cls(_url, lazy=lazy)
        Make a `DecodedURL` instance from any text string containing a URL.

        Args:
          text (unicode): Text containing the URL
          lazy (bool): Whether to pre-decode all parts of the URL to
              check for validity. Defaults to True.
        
stackoverflow/venv/lib/python3.6/site-packages/hyperlink/_url.py