mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 12:51:27 +08:00
Remove empty __init__ methods from classes with 0 parents (#8907)
This commit is contained in:
@@ -7,7 +7,6 @@ class Charset:
|
||||
def __init__(self, id, name, collation, is_default): ...
|
||||
|
||||
class Charsets:
|
||||
def __init__(self): ...
|
||||
def add(self, c): ...
|
||||
def by_id(self, id): ...
|
||||
def by_name(self, name): ...
|
||||
|
||||
@@ -7,7 +7,6 @@ class ReflectedState:
|
||||
keys: Any
|
||||
fk_constraints: Any
|
||||
ck_constraints: Any
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class MySQLTableDefinitionParser:
|
||||
logger: Any
|
||||
|
||||
@@ -5,5 +5,4 @@ def deregister(class_) -> None: ...
|
||||
|
||||
class _dispatcher:
|
||||
specs: Any
|
||||
def __init__(self) -> None: ...
|
||||
def __call__(self, element, compiler, **kw): ...
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
class IdentityMap:
|
||||
def __init__(self) -> None: ...
|
||||
def keys(self): ...
|
||||
def replace(self, state) -> None: ...
|
||||
def add(self, state) -> None: ...
|
||||
|
||||
@@ -34,7 +34,6 @@ class PostLoad:
|
||||
loaders: Any
|
||||
states: Any
|
||||
load_keys: Any
|
||||
def __init__(self) -> None: ...
|
||||
def add_state(self, state, overwrite) -> None: ...
|
||||
def invoke(self, context, path) -> None: ...
|
||||
@classmethod
|
||||
|
||||
@@ -78,6 +78,5 @@ class AttributeState:
|
||||
class PendingCollection:
|
||||
deleted_items: Any
|
||||
added_items: Any
|
||||
def __init__(self) -> None: ...
|
||||
def append(self, value) -> None: ...
|
||||
def remove(self, value) -> None: ...
|
||||
|
||||
@@ -44,7 +44,6 @@ class _UnboundLoad(Load):
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class loader_option:
|
||||
def __init__(self) -> None: ...
|
||||
name: Any
|
||||
fn: Any
|
||||
def __call__(self, fn): ...
|
||||
|
||||
@@ -76,7 +76,6 @@ class SQLCursorExecuteObserved: ...
|
||||
|
||||
class SQLAsserter:
|
||||
accumulated: Any
|
||||
def __init__(self) -> None: ...
|
||||
def assert_(self, *rules) -> None: ...
|
||||
|
||||
def assert_engine(engine) -> None: ...
|
||||
|
||||
@@ -10,7 +10,6 @@ class ConnectionKiller:
|
||||
proxy_refs: Any
|
||||
testing_engines: Any
|
||||
dbapi_connections: Any
|
||||
def __init__(self) -> None: ...
|
||||
def add_pool(self, pool) -> None: ...
|
||||
def add_engine(self, engine, scope) -> None: ...
|
||||
def rollback_all(self) -> None: ...
|
||||
|
||||
@@ -7,7 +7,6 @@ class compound:
|
||||
fails: Any
|
||||
skips: Any
|
||||
tags: Any
|
||||
def __init__(self) -> None: ...
|
||||
def __add__(self, other): ...
|
||||
def as_skips(self): ...
|
||||
def add(self, *others): ...
|
||||
|
||||
@@ -5,7 +5,6 @@ FOLLOWER_IDENT: Any
|
||||
|
||||
class register:
|
||||
fns: Any
|
||||
def __init__(self) -> None: ...
|
||||
@classmethod
|
||||
def init(cls, fn): ...
|
||||
def for_db(self, *dbnames): ...
|
||||
|
||||
@@ -35,7 +35,6 @@ def doc_to_help(doc: str) -> str: ...
|
||||
DocToHelp = doc_to_help
|
||||
|
||||
class FlagValues:
|
||||
def __init__(self) -> None: ...
|
||||
def UseGnuGetOpt(self, use_gnu_getopt: bool = ...) -> None: ...
|
||||
def is_gnu_getopt(self) -> bool: ...
|
||||
IsGnuGetOpt = is_gnu_getopt
|
||||
|
||||
@@ -13,7 +13,6 @@ class ExceptionSaver:
|
||||
def run_setup(setup_script, args): ...
|
||||
|
||||
class AbstractSandbox:
|
||||
def __init__(self) -> None: ...
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(self, exc_type, exc_value, traceback) -> None: ...
|
||||
def run(self, func): ...
|
||||
|
||||
@@ -13,5 +13,4 @@ _R = TypeVar("_R")
|
||||
class MonoWorker:
|
||||
pool: ThreadPoolExecutor
|
||||
futures: deque[Future[Incomplete]]
|
||||
def __init__(self) -> None: ...
|
||||
def submit(self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs) -> Future[_R]: ...
|
||||
|
||||
@@ -13,7 +13,6 @@ from ._collections import HTTPHeaderDict
|
||||
_TYPE_BODY: TypeAlias = bytes | IO[Any] | Iterable[bytes] | str
|
||||
|
||||
class DeflateDecoder:
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def decompress(self, data: bytes) -> bytes: ...
|
||||
|
||||
@@ -23,14 +22,12 @@ class GzipDecoderState:
|
||||
SWALLOW_DATA: Literal[2]
|
||||
|
||||
class GzipDecoder:
|
||||
def __init__(self) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
def decompress(self, data: bytes) -> bytes: ...
|
||||
|
||||
# This class is only available if
|
||||
# `brotli` is available for import.
|
||||
class BrotliDecoder:
|
||||
def __init__(self) -> None: ...
|
||||
def flush(self) -> bytes: ...
|
||||
|
||||
class MultiDecoder:
|
||||
|
||||
@@ -133,7 +133,6 @@ def defaultSerialize(obj, buf, lineLength): ...
|
||||
|
||||
class Stack:
|
||||
stack: Any
|
||||
def __init__(self) -> None: ...
|
||||
def __len__(self): ...
|
||||
def top(self): ...
|
||||
def topName(self): ...
|
||||
|
||||
@@ -12,7 +12,6 @@ class Behavior:
|
||||
allowGroup: bool
|
||||
forceUTC: bool
|
||||
sortFirst: Any
|
||||
def __init__(self) -> None: ...
|
||||
@classmethod
|
||||
def validate(cls, obj, raiseException: bool = ..., complainUnrecognized: bool = ...): ...
|
||||
@classmethod
|
||||
|
||||
@@ -20,7 +20,6 @@ class ThreadedTaskDispatcher:
|
||||
lock: Lock = ...
|
||||
queue_cv: Condition = ...
|
||||
thread_exit_cv: Condition = ...
|
||||
def __init__(self) -> None: ...
|
||||
def start_new_thread(self, target: Any, args: Any) -> None: ...
|
||||
def handler_thread(self, thread_no: int) -> None: ...
|
||||
def set_thread_count(self, count: int) -> None: ...
|
||||
|
||||
@@ -10,7 +10,6 @@ class _triggerbase:
|
||||
kind: str | None = ...
|
||||
lock: Lock = ...
|
||||
thunks: Callable[[None], None] = ...
|
||||
def __init__(self) -> None: ...
|
||||
def readable(self) -> Literal[True]: ...
|
||||
def writable(self) -> Literal[False]: ...
|
||||
def handle_connect(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user