Skip to content

Conversation

@maxzhx
Copy link

@maxzhx maxzhx commented Aug 23, 2021

hyper's init_context function support tuple as certificate file type

proxy_host: Optional[str] = None, proxy_port: Optional[int] = None,
heartbeat_period: Optional[float] = None) -> None:
if isinstance(credentials, str):
if isinstance(credentials, str) or isinstance(credentials, tuple):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use isinstance(credentials, (str, tuple))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants