mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 03:11:16 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user