mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
fix type annotations
[ci skip]
This commit is contained in:
parent
6c2e31193c
commit
4f515d75db
1 changed files with 4 additions and 1 deletions
|
@ -1,12 +1,15 @@
|
|||
# MIT licensed
|
||||
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from contextvars import ContextVar
|
||||
from typing import Optional
|
||||
|
||||
from . import __version__
|
||||
|
||||
DEFAULT_USER_AGENT = 'lilydjwg/nvchecker %s' % __version__
|
||||
|
||||
tries = ContextVar('tries', default=1)
|
||||
proxy = ContextVar('proxy', default=None)
|
||||
proxy: ContextVar[Optional[str]] = ContextVar('proxy', default=None)
|
||||
user_agent = ContextVar('user_agent', default=DEFAULT_USER_AGENT)
|
||||
|
|
Loading…
Add table
Reference in a new issue