mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, Optional
|
||||
from typing import Any, Dict
|
||||
|
||||
class CookieError(Exception): ...
|
||||
|
||||
@@ -10,17 +10,17 @@ class Morsel(Dict[Any, Any]):
|
||||
value: Any
|
||||
coded_value: Any
|
||||
def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...
|
||||
def output(self, attrs: Optional[Any] = ..., header=...): ...
|
||||
def js_output(self, attrs: Optional[Any] = ...): ...
|
||||
def OutputString(self, attrs: Optional[Any] = ...): ...
|
||||
def output(self, attrs: Any | None = ..., header=...): ...
|
||||
def js_output(self, attrs: Any | None = ...): ...
|
||||
def OutputString(self, attrs: Any | None = ...): ...
|
||||
|
||||
class BaseCookie(Dict[Any, Any]):
|
||||
def value_decode(self, val): ...
|
||||
def value_encode(self, val): ...
|
||||
def __init__(self, input: Optional[Any] = ...): ...
|
||||
def __init__(self, input: Any | None = ...): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def output(self, attrs: Optional[Any] = ..., header=..., sep=...): ...
|
||||
def js_output(self, attrs: Optional[Any] = ...): ...
|
||||
def output(self, attrs: Any | None = ..., header=..., sep=...): ...
|
||||
def js_output(self, attrs: Any | None = ...): ...
|
||||
def load(self, rawdata): ...
|
||||
|
||||
class SimpleCookie(BaseCookie):
|
||||
@@ -28,12 +28,12 @@ class SimpleCookie(BaseCookie):
|
||||
def value_encode(self, val): ...
|
||||
|
||||
class SerialCookie(BaseCookie):
|
||||
def __init__(self, input: Optional[Any] = ...): ...
|
||||
def __init__(self, input: Any | None = ...): ...
|
||||
def value_decode(self, val): ...
|
||||
def value_encode(self, val): ...
|
||||
|
||||
class SmartCookie(BaseCookie):
|
||||
def __init__(self, input: Optional[Any] = ...): ...
|
||||
def __init__(self, input: Any | None = ...): ...
|
||||
def value_decode(self, val): ...
|
||||
def value_encode(self, val): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user