mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Replace non-ellipsis default arguments (#2550)
This commit is contained in:
committed by
Jelle Zijlstra
parent
b7d6bab83f
commit
cd75801aa5
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from typing import Any, Optional
|
||||
|
||||
class CookieError(Exception): ...
|
||||
|
||||
@@ -10,17 +10,17 @@ class Morsel(dict):
|
||||
value = ... # type: Any
|
||||
coded_value = ... # type: Any
|
||||
def set(self, key, val, coded_val, LegalChars=..., idmap=..., translate=...): ...
|
||||
def output(self, attrs=None, header=...): ...
|
||||
def js_output(self, attrs=None): ...
|
||||
def OutputString(self, attrs=None): ...
|
||||
def output(self, attrs: Optional[Any] = ..., header=...): ...
|
||||
def js_output(self, attrs: Optional[Any] = ...): ...
|
||||
def OutputString(self, attrs: Optional[Any] = ...): ...
|
||||
|
||||
class BaseCookie(dict):
|
||||
def value_decode(self, val): ...
|
||||
def value_encode(self, val): ...
|
||||
def __init__(self, input=None): ...
|
||||
def __init__(self, input: Optional[Any] = ...): ...
|
||||
def __setitem__(self, key, value): ...
|
||||
def output(self, attrs=None, header=..., sep=...): ...
|
||||
def js_output(self, attrs=None): ...
|
||||
def output(self, attrs: Optional[Any] = ..., header=..., sep=...): ...
|
||||
def js_output(self, attrs: Optional[Any] = ...): ...
|
||||
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=None): ...
|
||||
def __init__(self, input: Optional[Any] = ...): ...
|
||||
def value_decode(self, val): ...
|
||||
def value_encode(self, val): ...
|
||||
|
||||
class SmartCookie(BaseCookie):
|
||||
def __init__(self, input=None): ...
|
||||
def __init__(self, input: Optional[Any] = ...): ...
|
||||
def value_decode(self, val): ...
|
||||
def value_encode(self, val): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user