mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-31 10:51:58 -05:00
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
33 lines
1.1 KiB
Python
Generated
33 lines
1.1 KiB
Python
Generated
"""This type stub file was generated by pyright."""
|
|
|
|
class ProxyConfig(dict):
|
|
"""Hold the client's proxy configuration."""
|
|
|
|
@property
|
|
def http(self): ...
|
|
@property
|
|
def https(self): ...
|
|
@property
|
|
def ftp(self): ...
|
|
@property
|
|
def no_proxy(self): ...
|
|
@staticmethod
|
|
def from_dict(config): # -> ProxyConfig:
|
|
"""Instantiate a new ProxyConfig from a dictionary that represents a
|
|
client configuration, as described in `the documentation`_.
|
|
|
|
.. _the documentation:
|
|
https://docs.docker.com/network/proxy/#configure-the-docker-client
|
|
"""
|
|
...
|
|
def get_environment(self): # -> dict[Unknown, Unknown]:
|
|
"""Return a dictionary representing the environment variables used to
|
|
set the proxy settings.
|
|
"""
|
|
...
|
|
def inject_proxy_environment(self, environment): # -> list[Unknown | str]:
|
|
"""Given a list of strings representing environment variables, prepend the
|
|
environment variables corresponding to the proxy settings.
|
|
"""
|
|
...
|