mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 03:01:25 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
@@ -20,7 +20,7 @@ class Request(RequestBase, JSONMixin):
|
||||
# case in its supertype.
|
||||
# We would require something like https://github.com/python/typing/issues/241
|
||||
@property
|
||||
def max_content_length(self) -> int | None: ... # type: ignore
|
||||
def max_content_length(self) -> int | None: ... # type: ignore[override]
|
||||
@property
|
||||
def endpoint(self) -> str | None: ...
|
||||
@property
|
||||
|
||||
@@ -10,15 +10,15 @@ concat: Any
|
||||
|
||||
_CallableT = TypeVar("_CallableT", bound=Callable[..., Any])
|
||||
|
||||
class _ContextFunction(Protocol[_CallableT]): # type: ignore
|
||||
class _ContextFunction(Protocol[_CallableT]):
|
||||
contextfunction: Literal[True]
|
||||
__call__: _CallableT
|
||||
|
||||
class _EvalContextFunction(Protocol[_CallableT]): # type: ignore
|
||||
class _EvalContextFunction(Protocol[_CallableT]):
|
||||
evalcontextfunction: Literal[True]
|
||||
__call__: _CallableT
|
||||
|
||||
class _EnvironmentFunction(Protocol[_CallableT]): # type: ignore
|
||||
class _EnvironmentFunction(Protocol[_CallableT]):
|
||||
environmentfunction: Literal[True]
|
||||
__call__: _CallableT
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class Pattern:
|
||||
class InlineProcessor(Pattern):
|
||||
safe_mode: bool = ...
|
||||
def __init__(self, pattern, md: Any | None = ...) -> None: ...
|
||||
def handleMatch(self, m: Match[str], data) -> tuple[Element, int, int] | tuple[None, None, None]: ... # type: ignore
|
||||
def handleMatch(self, m: Match[str], data) -> tuple[Element, int, int] | tuple[None, None, None]: ... # type: ignore[override]
|
||||
|
||||
class SimpleTextPattern(Pattern): ...
|
||||
class SimpleTextInlineProcessor(InlineProcessor): ...
|
||||
|
||||
@@ -11,13 +11,13 @@ class Markup(text_type):
|
||||
def __html__(self) -> Markup: ...
|
||||
def __add__(self, other: text_type) -> Markup: ...
|
||||
def __radd__(self, other: text_type) -> Markup: ...
|
||||
def __mul__(self, num: int) -> Markup: ... # type: ignore
|
||||
def __rmul__(self, num: int) -> Markup: ... # type: ignore
|
||||
def __mul__(self, num: int) -> Markup: ... # type: ignore[override]
|
||||
def __rmul__(self, num: int) -> Markup: ... # type: ignore[override]
|
||||
def __mod__(self, *args: Any) -> Markup: ...
|
||||
def join(self, seq: Iterable[text_type]) -> Markup: ...
|
||||
def split(self, sep: text_type | None = ..., maxsplit: SupportsIndex = ...) -> list[Markup]: ... # type: ignore
|
||||
def rsplit(self, sep: text_type | None = ..., maxsplit: SupportsIndex = ...) -> list[Markup]: ... # type: ignore
|
||||
def splitlines(self, keepends: bool = ...) -> list[Markup]: ... # type: ignore
|
||||
def split(self, sep: text_type | None = ..., maxsplit: SupportsIndex = ...) -> list[Markup]: ... # type: ignore[override]
|
||||
def rsplit(self, sep: text_type | None = ..., maxsplit: SupportsIndex = ...) -> list[Markup]: ... # type: ignore[override]
|
||||
def splitlines(self, keepends: bool = ...) -> list[Markup]: ... # type: ignore[override]
|
||||
def unescape(self) -> Text: ...
|
||||
def striptags(self) -> Text: ...
|
||||
@classmethod
|
||||
|
||||
@@ -15,7 +15,7 @@ def fromqimage(im: Image | QImage) -> Image: ...
|
||||
def fromqpixmap(im: Image | QImage) -> Image: ...
|
||||
def align8to32(bytes: bytes, width: int, mode: Literal["1", "L", "P"]) -> bytes: ...
|
||||
|
||||
class ImageQt(QImage): # type: ignore
|
||||
class ImageQt(QImage):
|
||||
def __init__(self, im: Image) -> None: ...
|
||||
|
||||
def toqimage(im: Image) -> ImageQt: ...
|
||||
|
||||
@@ -40,11 +40,11 @@ class DictCursorMixin:
|
||||
def __iter__(self) -> Iterator[dict[Text, Any]]: ...
|
||||
|
||||
class SSCursor(Cursor):
|
||||
def fetchall(self) -> list[Tuple[Any, ...]]: ... # type: ignore
|
||||
def fetchall(self) -> list[Tuple[Any, ...]]: ... # type: ignore[override]
|
||||
def fetchall_unbuffered(self) -> Iterator[Tuple[Any, ...]]: ...
|
||||
def scroll(self, value: int, mode: Text = ...) -> None: ...
|
||||
|
||||
class DictCursor(DictCursorMixin, Cursor): ... # type: ignore
|
||||
class DictCursor(DictCursorMixin, Cursor): ... # type: ignore[misc]
|
||||
|
||||
class SSDictCursor(DictCursorMixin, SSCursor): # type: ignore
|
||||
def fetchall_unbuffered(self) -> Iterator[dict[Text, Any]]: ... # type: ignore
|
||||
class SSDictCursor(DictCursorMixin, SSCursor): # type: ignore[misc]
|
||||
def fetchall_unbuffered(self) -> Iterator[dict[Text, Any]]: ... # type: ignore[override]
|
||||
|
||||
@@ -89,7 +89,9 @@ class LexerContext:
|
||||
def __init__(self, text, pos, stack: Any | None = ..., end: Any | None = ...) -> None: ...
|
||||
|
||||
class ExtendedRegexLexer(RegexLexer):
|
||||
def get_tokens_unprocessed(self, text: str | None = ..., context: LexerContext | None = ...) -> Iterator[tuple[int, _TokenType, str]]: ... # type: ignore
|
||||
def get_tokens_unprocessed( # type: ignore[override]
|
||||
self, text: str | None = ..., context: LexerContext | None = ...
|
||||
) -> Iterator[tuple[int, _TokenType, str]]: ...
|
||||
|
||||
class ProfilingRegexLexerMeta(RegexLexerMeta): ...
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ class _TokenType(Tuple[str]): # TODO: change to lower-case tuple once new mypy
|
||||
def split(self) -> list[_TokenType]: ...
|
||||
subtypes: set[_TokenType]
|
||||
def __init__(self, *args: str) -> None: ...
|
||||
def __contains__(self, val: _TokenType) -> bool: ... # type: ignore
|
||||
def __contains__(self, val: _TokenType) -> bool: ... # type: ignore[override]
|
||||
def __getattr__(self, name: str) -> _TokenType: ...
|
||||
def __copy__(self): ...
|
||||
def __deepcopy__(self, memo): ...
|
||||
|
||||
@@ -49,7 +49,7 @@ class ImmutableListMixin(Generic[_V]):
|
||||
def reverse(self) -> NoReturn: ...
|
||||
def sort(self, cmp: Any | None = ..., key: Any | None = ..., reverse: Any | None = ...) -> NoReturn: ...
|
||||
|
||||
class ImmutableList(ImmutableListMixin[_V], List[_V]): ... # type: ignore
|
||||
class ImmutableList(ImmutableListMixin[_V], List[_V]): ... # type: ignore[misc]
|
||||
|
||||
class ImmutableDictMixin(object):
|
||||
@classmethod
|
||||
@@ -92,7 +92,7 @@ class TypeConversionDict(Dict[_K, _V]):
|
||||
@overload
|
||||
def get(self, key: _K, default: _D, type: Callable[[_V], _R]) -> _R | _D: ...
|
||||
|
||||
class ImmutableTypeConversionDict(ImmutableDictMixin, TypeConversionDict[_K, _V]): # type: ignore
|
||||
class ImmutableTypeConversionDict(ImmutableDictMixin, TypeConversionDict[_K, _V]): # type: ignore[misc]
|
||||
def copy(self) -> TypeConversionDict[_K, _V]: ...
|
||||
def __copy__(self) -> ImmutableTypeConversionDict[_K, _V]: ...
|
||||
|
||||
@@ -242,7 +242,7 @@ class EnvironHeaders(ImmutableHeadersMixin, Headers):
|
||||
def __iter__(self): ...
|
||||
def copy(self): ...
|
||||
|
||||
class CombinedMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ignore
|
||||
class CombinedMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ignore[misc]
|
||||
def __reduce_ex__(self, protocol): ...
|
||||
dicts: Any
|
||||
def __init__(self, dicts: Any | None = ...): ...
|
||||
@@ -266,15 +266,15 @@ class CombinedMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ig
|
||||
class FileMultiDict(MultiDict[_K, _V]):
|
||||
def add_file(self, name, file, filename: Any | None = ..., content_type: Any | None = ...): ...
|
||||
|
||||
class ImmutableDict(ImmutableDictMixin, Dict[_K, _V]): # type: ignore
|
||||
class ImmutableDict(ImmutableDictMixin, Dict[_K, _V]): # type: ignore[misc]
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class ImmutableMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ignore
|
||||
class ImmutableMultiDict(ImmutableMultiDictMixin, MultiDict[_K, _V]): # type: ignore[misc]
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
class ImmutableOrderedMultiDict(ImmutableMultiDictMixin, OrderedMultiDict[_K, _V]): # type: ignore
|
||||
class ImmutableOrderedMultiDict(ImmutableMultiDictMixin, OrderedMultiDict[_K, _V]): # type: ignore[misc]
|
||||
def copy(self): ...
|
||||
def __copy__(self): ...
|
||||
|
||||
@@ -288,8 +288,8 @@ class Accept(ImmutableList[Tuple[str, float]]):
|
||||
@overload
|
||||
def __getitem__(self, key: str) -> float: ...
|
||||
def quality(self, key: str) -> float: ...
|
||||
def __contains__(self, value: str) -> bool: ... # type: ignore
|
||||
def index(self, key: str | tuple[str, float]) -> int: ... # type: ignore
|
||||
def __contains__(self, value: str) -> bool: ... # type: ignore[override]
|
||||
def index(self, key: str | tuple[str, float]) -> int: ... # type: ignore[override]
|
||||
def find(self, key: str | tuple[str, float]) -> int: ...
|
||||
def values(self) -> Iterator[str]: ...
|
||||
def to_header(self) -> str: ...
|
||||
@@ -323,7 +323,7 @@ class _CacheControl(UpdateDictMixin, Dict[str, Any]):
|
||||
def __init__(self, values=..., on_update: Any | None = ...): ...
|
||||
def to_header(self): ...
|
||||
|
||||
class RequestCacheControl(ImmutableDictMixin, _CacheControl): # type: ignore
|
||||
class RequestCacheControl(ImmutableDictMixin, _CacheControl): # type: ignore[misc]
|
||||
max_stale: Any
|
||||
min_fresh: Any
|
||||
no_transform: Any
|
||||
@@ -403,7 +403,7 @@ class ContentRange:
|
||||
def __nonzero__(self): ...
|
||||
__bool__: Any
|
||||
|
||||
class Authorization(ImmutableDictMixin, Dict[str, Any]): # type: ignore
|
||||
class Authorization(ImmutableDictMixin, Dict[str, Any]): # type: ignore[misc]
|
||||
type: str
|
||||
def __init__(self, auth_type: str, data: Mapping[str, Any] | None = ...) -> None: ...
|
||||
@property
|
||||
|
||||
@@ -32,4 +32,4 @@ class Template(FlexTemplate):
|
||||
keywords: str = ...,
|
||||
) -> None: ...
|
||||
def add_page(self) -> None: ...
|
||||
def render(self, outfile: Any | None = ..., dest: Any | None = ...) -> None: ... # type: ignore
|
||||
def render(self, outfile: Any | None = ..., dest: Any | None = ...) -> None: ... # type: ignore[override]
|
||||
|
||||
@@ -79,8 +79,8 @@ class Credentials:
|
||||
def iter(self, domain) -> Generator[tuple[str, str], None, None]: ...
|
||||
|
||||
class KeyCerts(Credentials):
|
||||
def add(self, key, cert, domain, password) -> None: ... # type: ignore
|
||||
def iter(self, domain) -> Generator[tuple[str, str, str], None, None]: ... # type: ignore
|
||||
def add(self, key, cert, domain, password) -> None: ... # type: ignore[override]
|
||||
def iter(self, domain) -> Generator[tuple[str, str, str], None, None]: ... # type: ignore[override]
|
||||
|
||||
class AllHosts: ...
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ class CaseInsensitiveDict(collections.OrderedDict):
|
||||
def get(self, key, default: Any | None = ...): ...
|
||||
def pop(self, key, default: Any | None = ...): ...
|
||||
def setdefault(self, key, default: Any | None = ...): ...
|
||||
def update(self, other: Any | None = ..., **kw) -> None: ... # type: ignore
|
||||
def update(self, other: Any | None = ..., **kw) -> None: ... # type: ignore[override]
|
||||
def __contains__(self, key): ...
|
||||
def __delitem__(self, key): ...
|
||||
def __getitem__(self, key): ...
|
||||
|
||||
@@ -135,7 +135,7 @@ class JSONWebSignatureSerializer(Serializer):
|
||||
def load_payload(
|
||||
self, payload: Text | bytes, serializer: _serializer | None = ..., return_header: bool = ...
|
||||
) -> Any: ... # morally -> Any | Tuple[Any, MutableMapping[str, Any]]
|
||||
def dump_payload(self, header: Mapping[str, Any], obj: Any) -> bytes: ... # type: ignore
|
||||
def dump_payload(self, header: Mapping[str, Any], obj: Any) -> bytes: ... # type: ignore[override]
|
||||
def make_algorithm(self, algorithm_name: Text) -> SigningAlgorithm: ...
|
||||
def make_signer(self, salt: Text | bytes | None = ..., algorithm: SigningAlgorithm = ...) -> Signer: ...
|
||||
def make_header(self, header_fields: Mapping[str, Any] | None) -> MutableMapping[str, Any]: ...
|
||||
|
||||
@@ -72,7 +72,7 @@ class _MockIter:
|
||||
class Base:
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
class NonCallableMock(Base, Any): # type: ignore
|
||||
class NonCallableMock(Base, Any):
|
||||
def __new__(__cls, *args: Any, **kw: Any) -> NonCallableMock: ...
|
||||
def __init__(
|
||||
self,
|
||||
@@ -207,7 +207,7 @@ class _patcher:
|
||||
TEST_PREFIX: str
|
||||
dict: Type[_patch_dict]
|
||||
@overload
|
||||
def __call__( # type: ignore
|
||||
def __call__( # type: ignore[misc]
|
||||
self,
|
||||
target: Any,
|
||||
*,
|
||||
@@ -234,7 +234,7 @@ class _patcher:
|
||||
**kwargs: Any,
|
||||
) -> _patch[_T]: ...
|
||||
@overload
|
||||
def object( # type: ignore
|
||||
def object( # type: ignore[misc]
|
||||
self,
|
||||
target: Any,
|
||||
attribute: str,
|
||||
|
||||
@@ -10,7 +10,7 @@ class _SubDict(MutableMapping[str, PKey]):
|
||||
def __delitem__(self, key: str) -> None: ...
|
||||
def __getitem__(self, key: str) -> PKey: ...
|
||||
def __setitem__(self, key: str, val: PKey) -> None: ...
|
||||
def keys(self) -> list[str]: ... # type: ignore
|
||||
def keys(self) -> list[str]: ... # type: ignore[override]
|
||||
|
||||
class HostKeys(MutableMapping[str, _SubDict]):
|
||||
def __init__(self, filename: str | None = ...) -> None: ...
|
||||
@@ -25,8 +25,8 @@ class HostKeys(MutableMapping[str, _SubDict]):
|
||||
def __getitem__(self, key: str) -> _SubDict: ...
|
||||
def __delitem__(self, key: str) -> None: ...
|
||||
def __setitem__(self, hostname: str, entry: Mapping[str, PKey]) -> None: ...
|
||||
def keys(self) -> list[str]: ... # type: ignore
|
||||
def values(self) -> list[_SubDict]: ... # type: ignore
|
||||
def keys(self) -> list[str]: ... # type: ignore[override]
|
||||
def values(self) -> list[_SubDict]: ... # type: ignore[override]
|
||||
@staticmethod
|
||||
def hash_host(hostname: str, salt: str | None = ...) -> str: ...
|
||||
|
||||
|
||||
@@ -94,12 +94,12 @@ class PortScannerAsync(object):
|
||||
|
||||
class PortScannerYield(PortScannerAsync):
|
||||
def __init__(self) -> None: ...
|
||||
def scan( # type: ignore
|
||||
def scan( # type: ignore[override]
|
||||
self, hosts: str = ..., ports: str | None = ..., arguments: str = ..., sudo: bool = ..., timeout: int = ...
|
||||
) -> Iterator[tuple[str, _Result]]: ...
|
||||
def stop(self) -> None: ...
|
||||
def wait(self, timeout: int | None = ...) -> None: ...
|
||||
def still_scanning(self) -> None: ... # type: ignore
|
||||
def still_scanning(self) -> None: ... # type: ignore[override]
|
||||
|
||||
class PortScannerHostDict(Dict[str, Any]):
|
||||
def hostnames(self) -> list[_ResultHostNames]: ...
|
||||
|
||||
@@ -11,4 +11,4 @@ class JSON(JSONCommands):
|
||||
def __init__(self, client, version: Any | None = ..., decoder=..., encoder=...) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Any | None = ...) -> Pipeline: ...
|
||||
|
||||
class Pipeline(JSONCommands, ClientPipeline): ... # type: ignore
|
||||
class Pipeline(JSONCommands, ClientPipeline): ... # type: ignore[misc]
|
||||
|
||||
@@ -10,4 +10,4 @@ class TimeSeries(TimeSeriesCommands):
|
||||
def __init__(self, client: Any | None = ..., **kwargs) -> None: ...
|
||||
def pipeline(self, transaction: bool = ..., shard_hint: Any | None = ...) -> Pipeline: ...
|
||||
|
||||
class Pipeline(TimeSeriesCommands, ClientPipeline): ... # type: ignore
|
||||
class Pipeline(TimeSeriesCommands, ClientPipeline): ... # type: ignore[misc]
|
||||
|
||||
@@ -14,7 +14,7 @@ def from_url(url: str, *, db: int = ..., decode_responses: Literal[True], **kwar
|
||||
def from_url(url: str, *, db: int = ..., decode_responses: Literal[False] = ..., **kwargs: Any) -> Redis[bytes]: ...
|
||||
def pipeline(redis_obj: Redis[_StrType]) -> AbstractContextManager[Pipeline[_StrType]]: ...
|
||||
@overload
|
||||
def str_if_bytes(value: bytes) -> str: ... # type: ignore
|
||||
def str_if_bytes(value: bytes) -> str: ... # type: ignore[misc]
|
||||
@overload
|
||||
def str_if_bytes(value: _T) -> _T: ...
|
||||
def safe_str(value: object) -> str: ...
|
||||
|
||||
@@ -15,6 +15,6 @@ class CaseInsensitiveDict(MutableMapping[str, _VT], Generic[_VT]):
|
||||
class LookupDict(Dict[str, _VT]):
|
||||
name: Any
|
||||
def __init__(self, name: Any = ...) -> None: ...
|
||||
def __getitem__(self, key: str) -> _VT | None: ... # type: ignore
|
||||
def __getitem__(self, key: str) -> _VT | None: ... # type: ignore[override]
|
||||
def __getattr__(self, attr: str) -> _VT: ...
|
||||
def __setattr__(self, attr: str, value: _VT) -> None: ...
|
||||
|
||||
@@ -13,5 +13,5 @@ class PointerInput(InputDevice):
|
||||
def create_pointer_down(self, button) -> None: ...
|
||||
def create_pointer_up(self, button) -> None: ...
|
||||
def create_pointer_cancel(self) -> None: ...
|
||||
def create_pause(self, pause_duration) -> None: ... # type: ignore
|
||||
def create_pause(self, pause_duration) -> None: ... # type: ignore[override]
|
||||
def encode(self): ...
|
||||
|
||||
@@ -9,7 +9,7 @@ class develop(namespaces.DevelopInstaller, easy_install):
|
||||
boolean_options: Any
|
||||
command_consumes_arguments: bool
|
||||
multi_version: bool
|
||||
def run(self) -> None: ... # type: ignore
|
||||
def run(self) -> None: ... # type: ignore[override]
|
||||
uninstall: Any
|
||||
egg_path: Any
|
||||
setup_path: Any
|
||||
|
||||
@@ -9,7 +9,7 @@ _T = TypeVar("_T")
|
||||
|
||||
class ScanningLoader(TestLoader):
|
||||
def __init__(self) -> None: ...
|
||||
def loadTestsFromModule(self, module: ModuleType, pattern: Any | None = ...) -> list[TestSuite]: ... # type: ignore
|
||||
def loadTestsFromModule(self, module: ModuleType, pattern: Any | None = ...) -> list[TestSuite]: ... # type: ignore[override]
|
||||
|
||||
class NonDataProperty(Generic[_T]):
|
||||
fget: Callable[..., _T]
|
||||
|
||||
@@ -15,4 +15,4 @@ class upload_docs(upload):
|
||||
def finalize_options(self) -> None: ...
|
||||
def create_zipfile(self, filename) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def upload_file(self, filename) -> None: ... # type: ignore
|
||||
def upload_file(self, filename) -> None: ... # type: ignore[override]
|
||||
|
||||
@@ -2,7 +2,7 @@ from distutils.util import Mixin2to3 as _Mixin2to3
|
||||
from lib2to3.refactor import RefactoringTool
|
||||
|
||||
class DistutilsRefactoringTool(RefactoringTool):
|
||||
def log_error(self, msg, *args, **kw) -> None: ... # type: ignore
|
||||
def log_error(self, msg, *args, **kw) -> None: ... # type: ignore[override]
|
||||
def log_message(self, msg, *args) -> None: ...
|
||||
def log_debug(self, msg, *args) -> None: ...
|
||||
|
||||
|
||||
@@ -8,5 +8,5 @@ class ThemedStyle(ttk.Style, ThemedWidget):
|
||||
self, master: tkinter.Misc | None = ..., *, theme: str | None = ..., gif_override: bool | None = ..., **kwargs
|
||||
) -> None: ...
|
||||
# theme_use() can't return None (differs from ttk.Style)
|
||||
def theme_use(self, theme_name: str | None = ...) -> str: ... # type: ignore
|
||||
def theme_names(self) -> list[str]: ... # type: ignore
|
||||
def theme_use(self, theme_name: str | None = ...) -> str: ... # type: ignore[override]
|
||||
def theme_names(self) -> list[str]: ... # type: ignore[override]
|
||||
|
||||
@@ -23,8 +23,8 @@ class ThemedTk(tkinter.Tk, ThemedWidget):
|
||||
) -> None: ...
|
||||
def set_theme(self, theme_name, toplevel: bool | None = ..., themebg: bool | None = ...) -> None: ...
|
||||
# TODO: currently no good way to say "use the same big list of kwargs as parent class but also add these"
|
||||
def config(self, kw: Any | None = ..., **kwargs): ... # type: ignore
|
||||
def config(self, kw: Any | None = ..., **kwargs): ... # type: ignore[override]
|
||||
def cget(self, k): ...
|
||||
def configure(self, kw: Any | None = ..., **kwargs): ... # type: ignore
|
||||
def configure(self, kw: Any | None = ..., **kwargs): ... # type: ignore[override]
|
||||
def __getitem__(self, k): ...
|
||||
def __setitem__(self, k, v): ...
|
||||
|
||||
@@ -36,7 +36,7 @@ class TimezoneComponent(Component):
|
||||
normal_attributes: Any
|
||||
@staticmethod
|
||||
def pickTzid(tzinfo, allowUTC: bool = ...): ...
|
||||
def prettyPrint(self, level, tabwidth) -> None: ... # type: ignore
|
||||
def prettyPrint(self, level, tabwidth) -> None: ... # type: ignore[override]
|
||||
|
||||
class RecurringComponent(Component):
|
||||
isNative: bool
|
||||
|
||||
@@ -78,7 +78,7 @@ class Photo(VCardTextBehavior):
|
||||
@classmethod
|
||||
def valueRepr(cls, line): ...
|
||||
@classmethod
|
||||
def serialize(cls, obj, buf, lineLength, validate) -> None: ... # type: ignore
|
||||
def serialize(cls, obj, buf, lineLength, validate) -> None: ... # type: ignore[override]
|
||||
|
||||
def toListOrString(string): ...
|
||||
def splitFields(string): ...
|
||||
|
||||
@@ -71,7 +71,7 @@ class dispatcher_with_send(dispatcher):
|
||||
def initiate_send(self) -> None: ...
|
||||
handle_write: Callable[[], None] = ...
|
||||
def writable(self) -> bool: ...
|
||||
def send(self, data: bytes) -> None: ... # type: ignore
|
||||
def send(self, data: bytes) -> None: ... # type: ignore[override]
|
||||
|
||||
def close_all(map: Mapping[int, socket] | None = ..., ignore_all: bool = ...) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user