docs: def parse_aioredis_url(url: str) -> DictStrAny:
      """
      Convert Redis URL string to dict suitable to pass to
      ``aioredis.create_redis(...)`` call.
  
      **Usage**::
  
          async def connect_redis(url=None):
              url = url or 'redis://localhost:6379/0'
              return await create_redis(**get_aioredis_parts(url))
  
      :param url: URL to access Redis instance, started with ``redis://``.
      """
      parts = urlparse(url)
  
      db = parts.path[1:] or None  # type: Optional[Union[str, int]]
      if db:
          db = int(db)
  
      return {
          'address': (parts.hostname, parts.port or 6379),
          'db': db,
          'password': parts.password}