class_docstr: Specify package indexes/Python package sources using Airflow connections.
class_docstr_tok: ["Specify","package","indexes\/Python","package","sources","using","Airflow","connections","."]
docstr: Return connection for the hook.
docstr_tok: ["Return","connection","for","the","hook","."]
code: def get_conn(self) -> Any:
      """Return connection for the hook."""
      return self.get_connection_url()
  
file_path: airflow/airflow/hooks/package_index.py
imports: from __future__ import annotations
  import subprocess
  from typing import Any
  from urllib.parse import quote, urlparse
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 4 for calling the PackageIndexHook obj's underlying member method code with example usage: obj.get_conn() and returns: self