Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood
2021-12-28 10:31:43 +00:00
committed by GitHub
parent e6cb341d94
commit 8d5d2520ac
237 changed files with 966 additions and 1069 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Dict
from typing import Any
UNICODE_ASCII_CHARACTER_SET: str
CLIENT_ID_CHARACTER_SET: str
@@ -28,7 +28,7 @@ def add_params_to_uri(uri, params, fragment: bool = ...): ...
def safe_string_equals(a, b): ...
def to_unicode(data, encoding: str = ...): ...
class CaseInsensitiveDict(Dict[Any, Any]):
class CaseInsensitiveDict(dict[Any, Any]):
proxy: Any
def __init__(self, data) -> None: ...
def __contains__(self, k): ...

View File

@@ -1,6 +1,6 @@
from typing import Any, Dict
from typing import Any
class OAuth2Token(Dict[Any, Any]):
class OAuth2Token(dict[Any, Any]):
def __init__(self, params, old_scope: Any | None = ...) -> None: ...
@property
def scope_changed(self): ...