mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
Add __all__ part 2 (#13719)
--------- Co-authored-by: Avasam <samuel.06@hotmail.com>
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
wtforms.form.__all__
|
||||
|
||||
# Error: is not present at runtime
|
||||
# =============================
|
||||
# This is hack to get around Field.__new__ not being able to return
|
||||
|
||||
@@ -83,3 +83,5 @@ class Form(BaseForm, metaclass=FormMeta):
|
||||
def __setitem__(self, name: str, value: None) -> None: ... # type: ignore[override]
|
||||
def __delitem__(self, name: str) -> None: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
|
||||
__all__ = ("BaseForm", "Form")
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
# TODO: missing from stub
|
||||
editdistance.__all__
|
||||
|
||||
# Not public API -- the submodule is an implementation detail due to it being a cythonized package
|
||||
editdistance.bycython
|
||||
|
||||
@@ -4,3 +4,5 @@ def eval(a: Iterable[Hashable], b: Iterable[Hashable]) -> int: ...
|
||||
def distance(a: Iterable[Hashable], b: Iterable[Hashable]) -> int: ...
|
||||
def eval_criterion(a: Iterable[Hashable], b: Iterable[Hashable], thr: int) -> bool: ...
|
||||
def distance_le_than(a: Iterable[Hashable], b: Iterable[Hashable], thr: int) -> bool: ...
|
||||
|
||||
__all__ = ("eval", "distance", "eval_criterion", "distance_le_than")
|
||||
|
||||
@@ -1,40 +1,8 @@
|
||||
# TODO: missing from stub
|
||||
gevent._abstract_linkable.__all__
|
||||
gevent._ffi.loop.__all__
|
||||
gevent._ffi.watcher.__all__
|
||||
gevent._greenlet_primitives.__all__
|
||||
gevent._ident.__all__
|
||||
gevent._imap.__all__
|
||||
gevent.backdoor.__all__
|
||||
gevent.baseserver.__all__
|
||||
gevent.event.__all__
|
||||
gevent.events.__all__
|
||||
gevent.exceptions.__all__
|
||||
gevent.fileobject.__all__
|
||||
gevent.greenlet.__all__
|
||||
gevent.hub.__all__
|
||||
gevent.libev.__all__
|
||||
gevent.libev.corecext.__all__
|
||||
gevent.libuv.__all__
|
||||
gevent.libuv.loop.__all__
|
||||
gevent.libuv.watcher.__all__
|
||||
gevent.local.__all__
|
||||
gevent.monkey.__all__
|
||||
gevent.os.__all__
|
||||
gevent.resolver.__all__
|
||||
gevent.resolver.blocking.__all__
|
||||
gevent.resolver.dnspython.__all__
|
||||
gevent.resolver.thread.__all__
|
||||
gevent.resolver_thread.__all__
|
||||
gevent.server.__all__
|
||||
gevent.signal.__all__
|
||||
gevent.socket.__all__
|
||||
gevent.ssl.__all__
|
||||
gevent.subprocess.__all__
|
||||
gevent.threadpool.__all__
|
||||
gevent.timeout.__all__
|
||||
gevent.util.__all__
|
||||
gevent.win32util.__all__
|
||||
|
||||
# Error: failed to find stubs
|
||||
# =============================
|
||||
@@ -66,7 +34,6 @@ gevent._ffi.ERROR
|
||||
gevent._ffi.GEVENT_DEBUG_LEVEL
|
||||
gevent._ffi.TRACE
|
||||
gevent._ffi.loop.AbstractLoop.async
|
||||
gevent._ffi.loop.assign_standard_callbacks
|
||||
gevent._fileobjectcommon.UniversalNewlineBytesWrapper
|
||||
gevent._waiter.Waiter.switch_args
|
||||
|
||||
@@ -79,8 +46,6 @@ gevent.libuv.watcher.watcher.feed
|
||||
# unnecessary python 2 compatibility stuff
|
||||
gevent._config.Config.trace_malloc
|
||||
gevent._imap.IMapUnordered.next
|
||||
gevent.monkey.patch_builtins
|
||||
gevent.monkey.patch_sys
|
||||
gevent.pywsgi.Environ.iteritems
|
||||
|
||||
# weird method that doesn't work with this being generic, so we removed it
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
gevent.ares.__all__
|
||||
gevent.libev.corecffi.__all__
|
||||
gevent.resolver.ares.__all__
|
||||
gevent.resolver_ares.__all__
|
||||
|
||||
# Error: is not present in stub
|
||||
# =============================
|
||||
# internal API stuff we dropped because it wasn't necessary
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
gevent.ares.__all__
|
||||
gevent.libev.corecffi.__all__
|
||||
gevent.resolver.ares.__all__
|
||||
gevent.resolver_ares.__all__
|
||||
|
||||
# Error: is not present in stub
|
||||
# =============================
|
||||
# internal API stuff we dropped because it wasn't necessary
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Error: is not present in stub
|
||||
# =============================
|
||||
# these get exported but don't actually work on win32 so we ignore them
|
||||
gevent.signal.__all__
|
||||
gevent.signal.getsignal
|
||||
gevent.signal.signal
|
||||
|
||||
|
||||
@@ -11,3 +11,5 @@ class AbstractLinkable:
|
||||
def rawlink(self, callback: Callable[[Self], object], /) -> None: ...
|
||||
def ready(self) -> bool: ...
|
||||
def unlink(self, callback: Callable[[Self], object], /) -> None: ...
|
||||
|
||||
__all__ = ["AbstractLinkable"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from _typeshed import FileDescriptor
|
||||
from collections.abc import Callable
|
||||
from collections.abc import Callable, Sequence
|
||||
from types import TracebackType
|
||||
from typing import Protocol
|
||||
from typing_extensions import TypeAlias, TypeVarTuple, Unpack
|
||||
@@ -17,6 +17,10 @@ class _SupportsHandleError(Protocol):
|
||||
|
||||
_ErrorHandler: TypeAlias = _ErrorHandlerFunc | _SupportsHandleError
|
||||
|
||||
def assign_standard_callbacks(
|
||||
ffi: object, lib: object, callbacks_class: Callable[[object], object], extras: Sequence[tuple[object, object]] = ...
|
||||
) -> object: ...
|
||||
|
||||
class AbstractLoop:
|
||||
CALLBACK_CHECK_COUNT: int
|
||||
error_handler: _ErrorHandler | None
|
||||
@@ -78,3 +82,5 @@ class AbstractLoop:
|
||||
def run_callback_threadsafe(self, func: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts]) -> _Callback: ...
|
||||
def callback(self, priority: float | None = ...) -> _Callback: ...
|
||||
def fileno(self) -> FileDescriptor | None: ...
|
||||
|
||||
__all__ = ["AbstractLoop", "assign_standard_callbacks"]
|
||||
|
||||
@@ -89,3 +89,5 @@ class StatMixin:
|
||||
def prev(self) -> _StatResult | None: ...
|
||||
@property
|
||||
def interval(self) -> float: ...
|
||||
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -14,3 +14,5 @@ class SwitchOutGreenletWithLoop(TrackedRawGreenlet):
|
||||
def loop(self, value: _Loop) -> None: ...
|
||||
def switch(self) -> Any: ...
|
||||
def switch_out(self) -> NoReturn: ...
|
||||
|
||||
__all__ = ["TrackedRawGreenlet", "SwitchOutGreenletWithLoop"]
|
||||
|
||||
@@ -10,3 +10,5 @@ class IdentRegistry:
|
||||
def __init__(self) -> None: ...
|
||||
def get_ident(self, obj: object) -> int: ...
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
__all__ = ["IdentRegistry"]
|
||||
|
||||
@@ -22,3 +22,5 @@ class IMapUnordered(Greenlet[_P, _T]):
|
||||
|
||||
class IMap(IMapUnordered[_P, _T]):
|
||||
index: int
|
||||
|
||||
__all__ = ["IMapUnordered", "IMap"]
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
import sys
|
||||
|
||||
from gevent.resolver.cares import *
|
||||
|
||||
if sys.platform != "win32":
|
||||
__all__ = ["channel"]
|
||||
|
||||
@@ -43,3 +43,5 @@ class BackdoorServer(StreamServer):
|
||||
ciphers: str = ...,
|
||||
) -> None: ...
|
||||
def handle(self, conn: _GeventSocket, _address: _Address) -> None: ...
|
||||
|
||||
__all__ = ["BackdoorServer"]
|
||||
|
||||
@@ -63,3 +63,5 @@ class BaseServer(Generic[_P]):
|
||||
def stop(self, timeout: float | None = None) -> None: ...
|
||||
def serve_forever(self, stop_timeout: float | None = None) -> None: ...
|
||||
def is_fatal_error(self, ex: BaseException) -> bool: ...
|
||||
|
||||
__all__ = ["BaseServer"]
|
||||
|
||||
@@ -61,3 +61,5 @@ class AsyncResult(AbstractLinkable, Generic[_T]):
|
||||
def done(self) -> bool: ...
|
||||
def cancel(self) -> Literal[False]: ...
|
||||
def cancelled(self) -> Literal[False]: ...
|
||||
|
||||
__all__ = ["Event", "AsyncResult"]
|
||||
|
||||
@@ -163,3 +163,35 @@ class IGeventDidPatchAllEvent(IGeventDidPatchEvent): ...
|
||||
@implementer(IGeventDidPatchAllEvent)
|
||||
class GeventDidPatchAllEvent(_PatchAllMixin, GeventDidPatchEvent):
|
||||
ENTRY_POINT_NAME: str
|
||||
|
||||
__all__ = [
|
||||
"subscribers",
|
||||
# monitor thread
|
||||
"IEventLoopBlocked",
|
||||
"EventLoopBlocked",
|
||||
"IMemoryUsageThresholdExceeded",
|
||||
"MemoryUsageThresholdExceeded",
|
||||
"IMemoryUsageUnderThreshold",
|
||||
"MemoryUsageUnderThreshold",
|
||||
# Hub
|
||||
"IPeriodicMonitorThread",
|
||||
"IPeriodicMonitorThreadStartedEvent",
|
||||
"PeriodicMonitorThreadStartedEvent",
|
||||
# monkey
|
||||
"IGeventPatchEvent",
|
||||
"GeventPatchEvent",
|
||||
"IGeventWillPatchEvent",
|
||||
"DoNotPatch",
|
||||
"GeventWillPatchEvent",
|
||||
"IGeventDidPatchEvent",
|
||||
"IGeventWillPatchModuleEvent",
|
||||
"GeventWillPatchModuleEvent",
|
||||
"IGeventDidPatchModuleEvent",
|
||||
"GeventDidPatchModuleEvent",
|
||||
"IGeventWillPatchAllEvent",
|
||||
"GeventWillPatchAllEvent",
|
||||
"IGeventDidPatchBuiltinModulesEvent",
|
||||
"GeventDidPatchBuiltinModulesEvent",
|
||||
"IGeventDidPatchAllEvent",
|
||||
"GeventDidPatchAllEvent",
|
||||
]
|
||||
|
||||
@@ -13,3 +13,5 @@ class InvalidThreadUseError(RuntimeError): ...
|
||||
class HubDestroyed(GreenletExit):
|
||||
destroy_loop: bool
|
||||
def __init__(self, destroy_loop: bool) -> None: ...
|
||||
|
||||
__all__ = ["LoopExit"]
|
||||
|
||||
@@ -149,7 +149,9 @@ if sys.platform != "win32":
|
||||
) -> None: ...
|
||||
|
||||
_FileObjectType: TypeAlias = type[FileObjectPosix[Any, Any] | FileObjectBlock[Any, Any] | FileObjectThread[Any, Any]]
|
||||
__all__ = ["FileObjectPosix", "FileObjectThread", "FileObjectBlock", "FileObject"]
|
||||
else:
|
||||
_FileObjectType: TypeAlias = type[FileObjectBlock[Any, Any] | FileObjectThread[Any, Any]]
|
||||
__all__ = ["FileObjectThread", "FileObjectBlock", "FileObject"]
|
||||
|
||||
FileObject: _FileObjectType
|
||||
|
||||
@@ -96,3 +96,5 @@ def killall(
|
||||
block: bool = True,
|
||||
timeout: float | None = None,
|
||||
) -> None: ...
|
||||
|
||||
__all__ = ["Greenlet", "joinall", "killall"]
|
||||
|
||||
@@ -108,3 +108,5 @@ class linkproxy:
|
||||
obj: object
|
||||
def __init__(self, callback: Callable[[_T], object], obj: _T) -> None: ...
|
||||
def __call__(self, *args: object) -> None: ...
|
||||
|
||||
__all__ = ["getcurrent", "GreenletExit", "spawn_raw", "sleep", "kill", "signal", "reinit", "get_hub", "Hub", "Waiter"]
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -90,3 +90,13 @@ if sys.platform != "win32":
|
||||
def origflags_int(self) -> int: ...
|
||||
@property
|
||||
def sigfd(self) -> FileDescriptor: ...
|
||||
|
||||
__all__ = [
|
||||
"get_version",
|
||||
"get_header_version",
|
||||
"supported_backends",
|
||||
"recommended_backends",
|
||||
"embeddable_backends",
|
||||
"time",
|
||||
"loop",
|
||||
]
|
||||
|
||||
@@ -34,3 +34,13 @@ class loop(AbstractLoop):
|
||||
def reset_sigchld(self) -> None: ...
|
||||
|
||||
def stat(self, path: str, interval: float = 0.0, ref: bool = True, priority: bool | None = None) -> watcher.stat: ...
|
||||
|
||||
__all__ = [
|
||||
"get_version",
|
||||
"get_header_version",
|
||||
"supported_backends",
|
||||
"recommended_backends",
|
||||
"embeddable_backends",
|
||||
"time",
|
||||
"loop",
|
||||
]
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -40,3 +40,5 @@ class loop(AbstractLoop):
|
||||
def fork(self, ref: bool = True, priority: int | None = None) -> watcher.fork: ...
|
||||
def child(self, pid: int, trace: int = 0, ref: bool = True) -> watcher.child: ...
|
||||
# prepare is not supported on libuv yet, but we need type_error to annotate that
|
||||
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -30,3 +30,5 @@ class signal(_base.SignalMixin, watcher): ...
|
||||
class idle(_base.IdleMixin, watcher): ...
|
||||
class check(_base.CheckMixin, watcher): ...
|
||||
class prepare(_base.PrepareMixin, watcher): ...
|
||||
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -7,3 +7,5 @@ class local:
|
||||
def __getattribute__(self, name: str) -> Any: ...
|
||||
def __delattr__(self, name: str) -> None: ...
|
||||
def __setattr__(self, name: str, value: Any) -> None: ...
|
||||
|
||||
__all__ = ["local"]
|
||||
|
||||
@@ -13,11 +13,13 @@ def patch_thread(
|
||||
threading: bool = True, _threading_local: bool = True, Event: bool = True, logging: bool = True, existing_locks: bool = True
|
||||
) -> None: ...
|
||||
def patch_socket(dns: bool = True, aggressive: bool = True) -> None: ...
|
||||
def patch_builtins() -> None: ...
|
||||
def patch_dns() -> None: ...
|
||||
def patch_ssl() -> None: ...
|
||||
def patch_select(aggressive: bool = True) -> None: ...
|
||||
def patch_selectors(aggressive: bool = True) -> None: ...
|
||||
def patch_subprocess() -> None: ...
|
||||
def patch_sys(stdin: bool = True, stdout: bool = True, stderr: bool = True) -> None: ...
|
||||
def patch_signal() -> None: ...
|
||||
def patch_all(
|
||||
socket: bool = True,
|
||||
@@ -38,3 +40,29 @@ def patch_all(
|
||||
**kwargs: object,
|
||||
) -> bool | None: ...
|
||||
def main() -> dict[str, Any]: ...
|
||||
|
||||
__all__ = [
|
||||
"patch_all",
|
||||
"patch_builtins",
|
||||
"patch_dns",
|
||||
"patch_os",
|
||||
"patch_queue",
|
||||
"patch_select",
|
||||
"patch_signal",
|
||||
"patch_socket",
|
||||
"patch_ssl",
|
||||
"patch_subprocess",
|
||||
"patch_sys",
|
||||
"patch_thread",
|
||||
"patch_time",
|
||||
# query functions
|
||||
"get_original",
|
||||
"is_module_patched",
|
||||
"is_object_patched",
|
||||
# plugin API
|
||||
"patch_module",
|
||||
# module functions
|
||||
"main",
|
||||
# Errors and warnings
|
||||
"MonkeyPatchWarning",
|
||||
]
|
||||
|
||||
@@ -19,3 +19,5 @@ class AbstractResolver:
|
||||
) -> _AddrinfoResult: ...
|
||||
def gethostbyaddr(self, ip_address: str) -> tuple[str, list[str], list[str]]: ...
|
||||
def getnameinfo(self, sockaddr: _SockAddr, flags: int) -> _NameinfoResult: ...
|
||||
|
||||
__all__ = ()
|
||||
|
||||
@@ -39,3 +39,5 @@ if sys.platform != "win32":
|
||||
servers: Sequence[str] | str | None = None,
|
||||
) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
|
||||
__all__ = ["Resolver"]
|
||||
|
||||
@@ -11,3 +11,5 @@ class Resolver:
|
||||
) -> _AddrinfoResult: ...
|
||||
def gethostbyaddr(self, ip_address: str) -> tuple[str, list[str], list[str]]: ...
|
||||
def getnameinfo(self, sockaddr: _SockAddr, flags: int) -> _NameinfoResult: ...
|
||||
|
||||
__all__ = ["Resolver"]
|
||||
|
||||
@@ -7,3 +7,5 @@ class Resolver(AbstractResolver):
|
||||
def __init__(self, hub: Hub | None = ...) -> None: ...
|
||||
@property
|
||||
def resolver(self) -> Any: ... # this is a custom dnspython Resolver
|
||||
|
||||
__all__ = ["Resolver"]
|
||||
|
||||
@@ -13,3 +13,5 @@ class Resolver:
|
||||
) -> _AddrinfoResult: ...
|
||||
def gethostbyaddr(self, ip_address: str) -> tuple[str, list[str], list[str]]: ...
|
||||
def getnameinfo(self, sockaddr: _SockAddr, flags: int) -> _NameinfoResult: ...
|
||||
|
||||
__all__ = ["Resolver"]
|
||||
|
||||
@@ -1 +1,6 @@
|
||||
import sys
|
||||
|
||||
from gevent.resolver.ares import *
|
||||
|
||||
if sys.platform != "win32":
|
||||
__all__ = ["Resolver"]
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
from gevent.resolver.thread import *
|
||||
from gevent.resolver.thread import __all__ as __all__
|
||||
|
||||
@@ -82,3 +82,5 @@ class DatagramServer(BaseServer[[_GeventSocket, _Address]]):
|
||||
def sendto(self, data: ReadableBuffer, address: _StrictAddress, /) -> int: ...
|
||||
@overload
|
||||
def sendto(self, data: ReadableBuffer, flags: int, address: _StrictAddress, /) -> int: ...
|
||||
|
||||
__all__ = ["StreamServer", "DatagramServer"]
|
||||
|
||||
@@ -8,3 +8,5 @@ from signal import _HANDLER, _SIGNUM
|
||||
if sys.platform != "win32":
|
||||
def getsignal(signalnum: _SIGNUM) -> _HANDLER: ...
|
||||
def signal(signalnum: _SIGNUM, handler: _HANDLER) -> _HANDLER: ...
|
||||
|
||||
__all__ = ["signal", "getsignal"]
|
||||
|
||||
@@ -53,3 +53,5 @@ class ThreadResult(Generic[_T]):
|
||||
|
||||
class ThreadPoolExecutor(concurrent.futures.ThreadPoolExecutor):
|
||||
kill = concurrent.futures.ThreadPoolExecutor.shutdown
|
||||
|
||||
__all__ = ["ThreadPool", "ThreadResult", "ThreadPoolExecutor"]
|
||||
|
||||
@@ -53,3 +53,5 @@ def with_timeout(
|
||||
) -> _T1 | _T2: ...
|
||||
@overload
|
||||
def with_timeout(seconds: float | None, function: Callable[_P, _T], *args: _P.args, **kwds: _P.kwargs) -> _T: ...
|
||||
|
||||
__all__ = ["Timeout", "with_timeout"]
|
||||
|
||||
@@ -47,3 +47,5 @@ class assert_switches:
|
||||
def __init__(self, max_blocking_time: float | None = None, hub_only: bool = False) -> None: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...
|
||||
|
||||
__all__ = ["format_run_info", "print_run_info", "GreenletTree", "wrap_errors", "assert_switches"]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from collections.abc import Callable
|
||||
|
||||
formatError: Callable[[object], str]
|
||||
|
||||
__all__ = ["formatError"]
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
greenlet.__all__
|
||||
|
||||
# Error: is not present in stub
|
||||
# =============================
|
||||
# this module only contains C code and exports no Python code, so it's better
|
||||
|
||||
@@ -11,3 +11,4 @@ from ._greenlet import (
|
||||
)
|
||||
|
||||
__version__: Final[str]
|
||||
__all__ = ["__version__", "_C_API", "GreenletExit", "error", "getcurrent", "greenlet", "gettrace", "settrace"]
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
# TODO: missing from stub
|
||||
httplib2.__all__
|
||||
|
||||
# __getattr__() replaced with actual field in stub
|
||||
httplib2.Response.dict
|
||||
|
||||
@@ -186,3 +186,17 @@ class Response(dict[str, Any]):
|
||||
def __init__(self, info) -> None: ...
|
||||
@property
|
||||
def dict(self) -> Self: ...
|
||||
|
||||
__all__ = [
|
||||
"debuglevel",
|
||||
"FailedToDecompressContent",
|
||||
"Http",
|
||||
"HttpLib2Error",
|
||||
"ProxyInfo",
|
||||
"RedirectLimit",
|
||||
"RedirectMissingLocation",
|
||||
"Response",
|
||||
"RETRIES",
|
||||
"UnimplementedDigestAuthOptionError",
|
||||
"UnimplementedHmacDigestAuthOptionError",
|
||||
]
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
sassutils.builder.__all__
|
||||
sassutils.distutils.__all__
|
||||
sassutils.wsgi.__all__
|
||||
sass.__all__
|
||||
|
||||
# Error: is not present in stub
|
||||
# =============================
|
||||
# These are only implemented for the purposes of emitting an error
|
||||
|
||||
@@ -183,3 +183,20 @@ class SassMap(Mapping[_KT, _VT_co]):
|
||||
def __iter__(self) -> Iterator[_KT]: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
__all__ = (
|
||||
"MODES",
|
||||
"OUTPUT_STYLES",
|
||||
"SOURCE_COMMENTS",
|
||||
"CompileError",
|
||||
"SassColor",
|
||||
"SassError",
|
||||
"SassFunction",
|
||||
"SassList",
|
||||
"SassMap",
|
||||
"SassNumber",
|
||||
"SassWarning",
|
||||
"and_join",
|
||||
"compile",
|
||||
"libsass_version",
|
||||
)
|
||||
|
||||
@@ -32,3 +32,5 @@ class Manifest:
|
||||
def unresolve_filename(self, package_dir: str, filename: str) -> str: ...
|
||||
def build(self, package_dir: str, output_style: _OutputStyle = "nested") -> frozenset[str]: ...
|
||||
def build_one(self, package_dir: str, filename: str, source_map: bool = False) -> str: ...
|
||||
|
||||
__all__ = ("SUFFIXES", "SUFFIX_PATTERN", "Manifest", "build_directory")
|
||||
|
||||
@@ -14,3 +14,5 @@ class build_sass(Command):
|
||||
def finalize_options(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def get_package_dir(self, package: str) -> str: ...
|
||||
|
||||
__all__ = ("build_sass", "validate_manifests")
|
||||
|
||||
@@ -20,3 +20,5 @@ class SassMiddleware:
|
||||
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
||||
@staticmethod
|
||||
def quote_css_string(s: str) -> str: ...
|
||||
|
||||
__all__ = ("SassMiddleware",)
|
||||
|
||||
@@ -1,38 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
passlib.hosts.__all__
|
||||
passlib.crypto._blowfish.__all__
|
||||
passlib.crypto._blowfish.base.__all__
|
||||
passlib.crypto._blowfish.unrolled.__all__
|
||||
passlib.crypto._md4.__all__
|
||||
passlib.crypto.digest.__all__
|
||||
passlib.crypto.scrypt.__all__
|
||||
passlib.crypto.scrypt._builtin.__all__
|
||||
passlib.handlers.argon2.__all__
|
||||
passlib.handlers.bcrypt.__all__
|
||||
passlib.handlers.cisco.__all__
|
||||
passlib.handlers.des_crypt.__all__
|
||||
passlib.handlers.digests.__all__
|
||||
passlib.handlers.django.__all__
|
||||
passlib.handlers.fshp.__all__
|
||||
passlib.handlers.md5_crypt.__all__
|
||||
passlib.handlers.misc.__all__
|
||||
passlib.handlers.mssql.__all__
|
||||
passlib.handlers.pbkdf2.__all__
|
||||
passlib.handlers.phpass.__all__
|
||||
passlib.handlers.postgres.__all__
|
||||
passlib.handlers.roundup.__all__
|
||||
passlib.handlers.scram.__all__
|
||||
passlib.handlers.scrypt.__all__
|
||||
passlib.handlers.sha1_crypt.__all__
|
||||
passlib.handlers.sha2_crypt.__all__
|
||||
passlib.handlers.sun_md5_crypt.__all__
|
||||
passlib.handlers.windows.__all__
|
||||
passlib.utils.binary.__all__
|
||||
passlib.utils.decor.__all__
|
||||
passlib.utils.handlers.__all__
|
||||
passlib.utils.md4.__all__
|
||||
passlib.utils.pbkdf2.__all__
|
||||
|
||||
# proxy module that uses some import magic incompatible with stubtest
|
||||
passlib.hash
|
||||
|
||||
@@ -87,6 +52,7 @@ passlib.tests.*
|
||||
# This is only available when the crypt module is available. This module
|
||||
# was dropped from the standard library of Python 3.13, but is still available
|
||||
# in some environments.
|
||||
passlib.hosts.__all__
|
||||
(passlib.hosts.host_context)?
|
||||
|
||||
# Fields differs at runtime:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from passlib.crypto._blowfish.unrolled import BlowfishEngine as BlowfishEngine
|
||||
|
||||
def raw_bcrypt(password, ident, salt, log_rounds): ...
|
||||
|
||||
__all__ = ["BlowfishEngine", "raw_bcrypt"]
|
||||
|
||||
@@ -11,3 +11,5 @@ class BlowfishEngine:
|
||||
def eks_salted_expand(self, key_words, salt_words) -> None: ...
|
||||
def eks_repeated_expand(self, key_words, salt_words, rounds) -> None: ...
|
||||
def repeat_encipher(self, l, r, count): ...
|
||||
|
||||
__all__ = ["BlowfishEngine"]
|
||||
|
||||
@@ -3,3 +3,5 @@ from passlib.crypto._blowfish.base import BlowfishEngine as _BlowfishEngine
|
||||
class BlowfishEngine(_BlowfishEngine):
|
||||
def encipher(self, l, r): ...
|
||||
def expand(self, key_words) -> None: ...
|
||||
|
||||
__all__ = ["BlowfishEngine"]
|
||||
|
||||
@@ -10,3 +10,5 @@ class md4:
|
||||
def copy(self): ...
|
||||
def digest(self): ...
|
||||
def hexdigest(self): ...
|
||||
|
||||
__all__ = ["md4"]
|
||||
|
||||
@@ -26,3 +26,15 @@ class HashInfo(SequenceMixin):
|
||||
def compile_hmac(digest, key, multipart: bool = False): ...
|
||||
def pbkdf1(digest, secret, salt, rounds, keylen: Incomplete | None = None): ...
|
||||
def pbkdf2_hmac(digest, secret, salt, rounds, keylen: Incomplete | None = None): ...
|
||||
|
||||
__all__ = [
|
||||
# hash utils
|
||||
"lookup_hash",
|
||||
"HashInfo",
|
||||
"norm_hash_name",
|
||||
# hmac utils
|
||||
"compile_hmac",
|
||||
# kdfs
|
||||
"pbkdf1",
|
||||
"pbkdf2_hmac",
|
||||
]
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
def validate(n, r, p): ...
|
||||
def scrypt(secret, salt, n, r, p: int = 1, keylen: int = 32): ...
|
||||
|
||||
__all__ = ["validate", "scrypt"]
|
||||
|
||||
@@ -17,3 +17,5 @@ class ScryptEngine:
|
||||
def run(self, secret, salt, keylen): ...
|
||||
def smix(self, input) -> Generator[None, None, Any]: ...
|
||||
def bmix(self, source, target) -> None: ...
|
||||
|
||||
__all__ = ["ScryptEngine"]
|
||||
|
||||
@@ -83,3 +83,5 @@ class _PureBackend(_Argon2Common): ...
|
||||
|
||||
class argon2(_NoBackend, _Argon2Common): # type: ignore[misc]
|
||||
backends: ClassVar[tuple[str, ...]]
|
||||
|
||||
__all__ = ["argon2"]
|
||||
|
||||
@@ -53,3 +53,5 @@ class bcrypt_sha256(_wrapped_bcrypt):
|
||||
@classmethod
|
||||
def from_string(cls, hash): ...
|
||||
def __init__(self, version: Incomplete | None = None, **kwds) -> None: ...
|
||||
|
||||
__all__ = ["bcrypt"]
|
||||
|
||||
@@ -25,3 +25,5 @@ class cisco_type7(uh.GenericHandler):
|
||||
def __init__(self, salt: int | None = None, **kwds) -> None: ...
|
||||
@classmethod
|
||||
def decode(cls, hash, encoding: str = "utf-8"): ...
|
||||
|
||||
__all__ = ["cisco_pix", "cisco_asa", "cisco_type7"]
|
||||
|
||||
@@ -50,3 +50,5 @@ class crypt16(uh.TruncateMixin, uh.HasSalt, uh.GenericHandler): # type: ignore[
|
||||
truncate_size: ClassVar[int]
|
||||
@classmethod
|
||||
def from_string(cls, hash): ...
|
||||
|
||||
__all__ = ["des_crypt", "bsdi_crypt", "bigcrypt", "crypt16"]
|
||||
|
||||
@@ -30,3 +30,5 @@ class htdigest(uh.MinimalHandler):
|
||||
def genconfig(cls): ...
|
||||
@classmethod
|
||||
def genhash(cls, secret, config, user, realm, encoding: Incomplete | None = None): ... # type: ignore[override]
|
||||
|
||||
__all__ = ["create_hex_hash", "hex_md4", "hex_md5", "hex_sha1", "hex_sha256", "hex_sha512"]
|
||||
|
||||
@@ -79,3 +79,14 @@ class django_disabled(DisabledHash, uh.StaticHandler):
|
||||
def identify(cls, hash: str | bytes) -> bool: ...
|
||||
@classmethod
|
||||
def verify(cls, secret: str | bytes, hash: str | bytes) -> bool: ... # type: ignore[override]
|
||||
|
||||
__all__ = [
|
||||
"django_salted_sha1",
|
||||
"django_salted_md5",
|
||||
"django_bcrypt",
|
||||
"django_pbkdf2_sha1",
|
||||
"django_pbkdf2_sha256",
|
||||
"django_argon2",
|
||||
"django_des_crypt",
|
||||
"django_disabled",
|
||||
]
|
||||
|
||||
@@ -24,3 +24,5 @@ class fshp(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
def checksum_size(self): ...
|
||||
@classmethod
|
||||
def from_string(cls, hash): ...
|
||||
|
||||
__all__ = ["fshp"]
|
||||
|
||||
@@ -18,3 +18,5 @@ class md5_crypt(uh.HasManyBackends, _MD5_Common):
|
||||
class apr_md5_crypt(_MD5_Common):
|
||||
name: ClassVar[str]
|
||||
ident: ClassVar[str]
|
||||
|
||||
__all__ = ["md5_crypt", "apr_md5_crypt"]
|
||||
|
||||
@@ -48,3 +48,5 @@ class plaintext(uh.MinimalHandler):
|
||||
def genconfig(cls): ...
|
||||
@classmethod
|
||||
def genhash(cls, secret, config, encoding: str | None = None): ... # type: ignore[override]
|
||||
|
||||
__all__ = ["unix_disabled", "unix_fallback", "plaintext"]
|
||||
|
||||
@@ -19,3 +19,5 @@ class mssql2005(uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
max_salt_size: ClassVar[int]
|
||||
@classmethod
|
||||
def from_string(cls, hash): ...
|
||||
|
||||
__all__ = ["mssql2000", "mssql2005"]
|
||||
|
||||
@@ -87,3 +87,5 @@ class grub_pbkdf2_sha512(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.Gene
|
||||
rounds_cost: ClassVar[str]
|
||||
@classmethod
|
||||
def from_string(cls, hash): ...
|
||||
|
||||
__all__ = ["pbkdf2_sha1", "pbkdf2_sha256", "pbkdf2_sha512", "cta_pbkdf2_sha1", "dlitz_pbkdf2_sha1", "grub_pbkdf2_sha512"]
|
||||
|
||||
@@ -18,3 +18,5 @@ class phpass(uh.HasManyIdents, uh.HasRounds, uh.HasSalt, uh.GenericHandler): #
|
||||
ident_aliases: ClassVar[dict[str, str]]
|
||||
@classmethod
|
||||
def from_string(cls, hash: str | bytes) -> Self: ... # type: ignore[override]
|
||||
|
||||
__all__ = ["phpass"]
|
||||
|
||||
@@ -6,3 +6,5 @@ class postgres_md5(uh.HasUserContext, uh.StaticHandler):
|
||||
name: ClassVar[str]
|
||||
checksum_chars: ClassVar[str]
|
||||
checksum_size: ClassVar[int]
|
||||
|
||||
__all__ = ["postgres_md5"]
|
||||
|
||||
@@ -3,3 +3,5 @@ from typing import Any
|
||||
roundup_plaintext: Any
|
||||
ldap_hex_md5: Any
|
||||
ldap_hex_sha1: Any
|
||||
|
||||
__all__ = ["roundup_plaintext", "ldap_hex_md5", "ldap_hex_sha1"]
|
||||
|
||||
@@ -27,3 +27,5 @@ class scram(uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum, uh.GenericHandler):
|
||||
def __init__(self, algs: Incomplete | None = None, **kwds) -> None: ...
|
||||
@classmethod
|
||||
def verify(cls, secret, hash, full: bool = False): ... # type: ignore[override]
|
||||
|
||||
__all__ = ["scram"]
|
||||
|
||||
@@ -31,3 +31,5 @@ class scrypt(uh.ParallelismMixin, uh.HasRounds, uh.HasRawSalt, uh.HasRawChecksum
|
||||
def has_backend(cls, name: str = "any"): ...
|
||||
@classmethod
|
||||
def set_backend(cls, name: str = "any", dryrun: bool = False) -> None: ...
|
||||
|
||||
__all__ = ["scrypt"]
|
||||
|
||||
@@ -21,3 +21,5 @@ class sha1_crypt(uh.HasManyBackends, uh.HasRounds, uh.HasSalt, uh.GenericHandler
|
||||
def from_string(cls, hash: str | bytes) -> Self: ... # type: ignore[override]
|
||||
def to_string(self, config: bool = False) -> str: ...
|
||||
backends: ClassVar[tuple[str, ...]]
|
||||
|
||||
__all__: list[str] = []
|
||||
|
||||
@@ -27,3 +27,5 @@ class sha512_crypt(_SHA2_Common):
|
||||
ident: ClassVar[str]
|
||||
checksum_size: ClassVar[int]
|
||||
default_rounds: ClassVar[int]
|
||||
|
||||
__all__ = ["sha512_crypt", "sha256_crypt"]
|
||||
|
||||
@@ -22,3 +22,5 @@ class sun_md5_crypt(uh.HasRounds, uh.HasSalt, uh.GenericHandler): # type: ignor
|
||||
@classmethod
|
||||
def from_string(cls, hash: str | bytes) -> Self: ... # type: ignore[override]
|
||||
def to_string(self, _withchk: bool = True) -> str: ...
|
||||
|
||||
__all__ = ["sun_md5_crypt"]
|
||||
|
||||
@@ -42,3 +42,5 @@ class msdcc2(uh.HasUserContext, uh.StaticHandler):
|
||||
checksum_size: ClassVar[int]
|
||||
@classmethod
|
||||
def raw(cls, secret, user): ...
|
||||
|
||||
__all__ = ["lmhash", "nthash", "bsd_nthash", "msdcc", "msdcc2"]
|
||||
|
||||
@@ -49,3 +49,32 @@ class LazyBase64Engine(Base64Engine):
|
||||
h64: Any
|
||||
h64big: Any
|
||||
bcrypt64: Any
|
||||
|
||||
__all__ = [
|
||||
# constants
|
||||
"BASE64_CHARS",
|
||||
"PADDED_BASE64_CHARS",
|
||||
"AB64_CHARS",
|
||||
"HASH64_CHARS",
|
||||
"BCRYPT_CHARS",
|
||||
"HEX_CHARS",
|
||||
"LOWER_HEX_CHARS",
|
||||
"UPPER_HEX_CHARS",
|
||||
"ALL_BYTE_VALUES",
|
||||
# misc
|
||||
"compile_byte_translation",
|
||||
# base64
|
||||
"ab64_encode",
|
||||
"ab64_decode",
|
||||
"b64s_encode",
|
||||
"b64s_decode",
|
||||
# base32
|
||||
"b32encode",
|
||||
"b32decode",
|
||||
# custom encodings
|
||||
"Base64Engine",
|
||||
"LazyBase64Engine",
|
||||
"h64",
|
||||
"h64big",
|
||||
"bcrypt64",
|
||||
]
|
||||
|
||||
@@ -40,3 +40,12 @@ def deprecated_method(
|
||||
updoc: bool = True,
|
||||
replacement: Incomplete | None = None,
|
||||
): ...
|
||||
|
||||
__all__ = [
|
||||
"classproperty",
|
||||
"hybrid_method",
|
||||
"memoize_single_value",
|
||||
"memoized_property",
|
||||
"deprecated_function",
|
||||
"deprecated_method",
|
||||
]
|
||||
|
||||
@@ -183,3 +183,23 @@ class PrefixWrapper:
|
||||
def encrypt(self, secret, **kwds): ...
|
||||
def hash(self, secret, **kwds): ...
|
||||
def verify(self, secret, hash, **kwds): ...
|
||||
|
||||
__all__ = [
|
||||
# helpers for implementing MCF handlers
|
||||
"parse_mc2",
|
||||
"parse_mc3",
|
||||
"render_mc2",
|
||||
"render_mc3",
|
||||
# framework for implementing handlers
|
||||
"GenericHandler",
|
||||
"StaticHandler",
|
||||
"HasUserContext",
|
||||
"HasRawChecksum",
|
||||
"HasManyIdents",
|
||||
"HasSalt",
|
||||
"HasRawSalt",
|
||||
"HasRounds",
|
||||
"HasManyBackends",
|
||||
# other helpers
|
||||
"PrefixWrapper",
|
||||
]
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from typing import Any
|
||||
|
||||
md4: Any
|
||||
|
||||
__all__ = ["md4"]
|
||||
|
||||
@@ -5,3 +5,13 @@ from passlib.crypto.digest import norm_hash_name as norm_hash_name
|
||||
def get_prf(name): ...
|
||||
def pbkdf1(secret, salt, rounds, keylen: Incomplete | None = None, hash: str = "sha1"): ...
|
||||
def pbkdf2(secret, salt, rounds, keylen: Incomplete | None = None, prf: str = "hmac-sha1"): ...
|
||||
|
||||
__all__ = [
|
||||
# hash utils
|
||||
"norm_hash_name",
|
||||
# prf utils
|
||||
"get_prf",
|
||||
# kdfs
|
||||
"pbkdf1",
|
||||
"pbkdf2",
|
||||
]
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# TODO: missing from stub
|
||||
peewee.__all__
|
||||
|
||||
# Stubtest doesn't recognize __ as indicating positional-only arg at runtime
|
||||
# https://github.com/python/mypy/issues/15302
|
||||
peewee.Model.insert
|
||||
|
||||
@@ -1845,3 +1845,81 @@ class PrefetchQuery:
|
||||
def store_instance(self, instance, id_map) -> None: ...
|
||||
|
||||
def prefetch(sq, *subqueries): ...
|
||||
|
||||
__all__ = [
|
||||
"AnyField",
|
||||
"AsIs",
|
||||
"AutoField",
|
||||
"BareField",
|
||||
"BigAutoField",
|
||||
"BigBitField",
|
||||
"BigIntegerField",
|
||||
"BinaryUUIDField",
|
||||
"BitField",
|
||||
"BlobField",
|
||||
"BooleanField",
|
||||
"Case",
|
||||
"Cast",
|
||||
"CharField",
|
||||
"Check",
|
||||
"chunked",
|
||||
"Column",
|
||||
"CompositeKey",
|
||||
"Context",
|
||||
"Database",
|
||||
"DatabaseError",
|
||||
"DatabaseProxy",
|
||||
"DataError",
|
||||
"DateField",
|
||||
"DateTimeField",
|
||||
"DecimalField",
|
||||
"DeferredForeignKey",
|
||||
"DeferredThroughModel",
|
||||
"DJANGO_MAP",
|
||||
"DoesNotExist",
|
||||
"DoubleField",
|
||||
"DQ",
|
||||
"EXCLUDED",
|
||||
"Field",
|
||||
"FixedCharField",
|
||||
"FloatField",
|
||||
"fn",
|
||||
"ForeignKeyField",
|
||||
"IdentityField",
|
||||
"ImproperlyConfigured",
|
||||
"Index",
|
||||
"IntegerField",
|
||||
"IntegrityError",
|
||||
"InterfaceError",
|
||||
"InternalError",
|
||||
"IPField",
|
||||
"JOIN",
|
||||
"ManyToManyField",
|
||||
"Model",
|
||||
"ModelIndex",
|
||||
"MySQLDatabase",
|
||||
"NotSupportedError",
|
||||
"OP",
|
||||
"OperationalError",
|
||||
"PostgresqlDatabase",
|
||||
"PrimaryKeyField",
|
||||
"prefetch",
|
||||
"PREFETCH_TYPE",
|
||||
"ProgrammingError",
|
||||
"Proxy",
|
||||
"QualifiedNames",
|
||||
"SchemaManager",
|
||||
"SmallIntegerField",
|
||||
"Select",
|
||||
"SQL",
|
||||
"SqliteDatabase",
|
||||
"Table",
|
||||
"TextField",
|
||||
"TimeField",
|
||||
"TimestampField",
|
||||
"Tuple",
|
||||
"UUIDField",
|
||||
"Value",
|
||||
"ValuesList",
|
||||
"Window",
|
||||
]
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# TODO: missing from stub
|
||||
polib.__all__
|
||||
@@ -155,3 +155,16 @@ class _MOFileParser(Generic[_TM]):
|
||||
def __init__(self, mofile: str, *args: Any, **kwargs: Any) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def parse(self) -> _TM: ...
|
||||
|
||||
__all__ = [
|
||||
"pofile",
|
||||
"POFile",
|
||||
"POEntry",
|
||||
"mofile",
|
||||
"MOFile",
|
||||
"MOEntry",
|
||||
"default_encoding",
|
||||
"escape",
|
||||
"unescape",
|
||||
"detect_encoding",
|
||||
]
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# TODO: missing from stub
|
||||
psutil.__all__
|
||||
psutil._common.__all__
|
||||
psutil._psposix.__all__
|
||||
|
||||
# Stubtest does not support these platforms
|
||||
psutil._psaix
|
||||
|
||||
@@ -283,3 +283,96 @@ def term_supports_colors(file: SupportsWrite[str] = ...) -> bool: ...
|
||||
def hilite(s: str, color: str | None = None, bold: bool = False) -> str: ...
|
||||
def print_color(s: str, color: str | None = None, bold: bool = False, file: SupportsWrite[str] = ...) -> None: ...
|
||||
def debug(msg) -> None: ...
|
||||
|
||||
__all__ = [
|
||||
# OS constants
|
||||
"FREEBSD",
|
||||
"BSD",
|
||||
"LINUX",
|
||||
"NETBSD",
|
||||
"OPENBSD",
|
||||
"MACOS",
|
||||
"OSX",
|
||||
"POSIX",
|
||||
"SUNOS",
|
||||
"WINDOWS",
|
||||
# connection constants
|
||||
"CONN_CLOSE",
|
||||
"CONN_CLOSE_WAIT",
|
||||
"CONN_CLOSING",
|
||||
"CONN_ESTABLISHED",
|
||||
"CONN_FIN_WAIT1",
|
||||
"CONN_FIN_WAIT2",
|
||||
"CONN_LAST_ACK",
|
||||
"CONN_LISTEN",
|
||||
"CONN_NONE",
|
||||
"CONN_SYN_RECV",
|
||||
"CONN_SYN_SENT",
|
||||
"CONN_TIME_WAIT",
|
||||
# net constants
|
||||
"NIC_DUPLEX_FULL",
|
||||
"NIC_DUPLEX_HALF",
|
||||
"NIC_DUPLEX_UNKNOWN",
|
||||
# process status constants
|
||||
"STATUS_DEAD",
|
||||
"STATUS_DISK_SLEEP",
|
||||
"STATUS_IDLE",
|
||||
"STATUS_LOCKED",
|
||||
"STATUS_RUNNING",
|
||||
"STATUS_SLEEPING",
|
||||
"STATUS_STOPPED",
|
||||
"STATUS_SUSPENDED",
|
||||
"STATUS_TRACING_STOP",
|
||||
"STATUS_WAITING",
|
||||
"STATUS_WAKE_KILL",
|
||||
"STATUS_WAKING",
|
||||
"STATUS_ZOMBIE",
|
||||
"STATUS_PARKED",
|
||||
# other constants
|
||||
"ENCODING",
|
||||
"ENCODING_ERRS",
|
||||
"AF_INET6",
|
||||
# named tuples
|
||||
"pconn",
|
||||
"pcputimes",
|
||||
"pctxsw",
|
||||
"pgids",
|
||||
"pio",
|
||||
"pionice",
|
||||
"popenfile",
|
||||
"pthread",
|
||||
"puids",
|
||||
"sconn",
|
||||
"scpustats",
|
||||
"sdiskio",
|
||||
"sdiskpart",
|
||||
"sdiskusage",
|
||||
"snetio",
|
||||
"snicaddr",
|
||||
"snicstats",
|
||||
"sswap",
|
||||
"suser",
|
||||
# utility functions
|
||||
"conn_tmap",
|
||||
"deprecated_method",
|
||||
"isfile_strict",
|
||||
"memoize",
|
||||
"parse_environ_block",
|
||||
"path_exists_strict",
|
||||
"usage_percent",
|
||||
"supports_ipv6",
|
||||
"sockfam_to_enum",
|
||||
"socktype_to_enum",
|
||||
"wrap_numbers",
|
||||
"open_text",
|
||||
"open_binary",
|
||||
"cat",
|
||||
"bcat",
|
||||
"bytes2human",
|
||||
"conn_to_ntuple",
|
||||
"debug",
|
||||
# shell utils
|
||||
"hilite",
|
||||
"term_supports_colors",
|
||||
"print_color",
|
||||
]
|
||||
|
||||
@@ -13,3 +13,5 @@ def wait_pid(
|
||||
): ...
|
||||
def disk_usage(path): ...
|
||||
def get_terminal_map(): ...
|
||||
|
||||
__all__ = ["pid_exists", "wait_pid", "disk_usage", "get_terminal_map"]
|
||||
|
||||
@@ -1,26 +1,10 @@
|
||||
# TODO: missing from stub
|
||||
reportlab.graphics.barcode.__all__
|
||||
reportlab.graphics.barcode.dmtx.__all__
|
||||
reportlab.rl_config.__all__
|
||||
|
||||
# Incorrect __all__ names in runtime
|
||||
reportlab.graphics.barcode.eanbc.__all__
|
||||
reportlab.graphics.barcode.ecc200datamatrix.__all__
|
||||
reportlab.graphics.barcode.usps4s.__all__
|
||||
reportlab.graphics.barcode.widgets.__all__
|
||||
reportlab.graphics.svgpath.__all__
|
||||
reportlab.graphics.transform.__all__
|
||||
reportlab.graphics.utils.__all__
|
||||
reportlab.lib.arciv.__all__
|
||||
reportlab.lib.formatters.__all__
|
||||
reportlab.lib.pygments2xpre.__all__
|
||||
reportlab.lib.rl_accel.__all__
|
||||
reportlab.lib.rltempfile.__all__
|
||||
reportlab.lib.styles.__all__
|
||||
reportlab.pdfgen.canvas.__all__
|
||||
reportlab.platypus.frames.__all__
|
||||
reportlab.platypus.multicol.__all__
|
||||
reportlab.platypus.paragraph.__all__
|
||||
reportlab.platypus.xpreformatted.__all__
|
||||
reportlab.rl_config.__all__
|
||||
reportlab.rl_settings.__all__
|
||||
|
||||
# Error: is inconsistent
|
||||
# ======================
|
||||
|
||||
@@ -3,3 +3,5 @@ def getCodes(): ...
|
||||
def getCodeNames(): ...
|
||||
def createBarcodeDrawing(codeName, **options): ...
|
||||
def createBarcodeImageInMemory(codeName, **options): ...
|
||||
|
||||
__all__ = ("registerWidget", "getCodes", "getCodeNames", "createBarcodeDrawing", "createBarcodeImageInMemory")
|
||||
|
||||
@@ -39,3 +39,5 @@ class Ean5BarcodeWidget(Ean13BarcodeWidget):
|
||||
class ISBNBarcodeWidget(Ean13BarcodeWidget):
|
||||
codeName: str
|
||||
def draw(self): ...
|
||||
|
||||
__all__ = ("Ean13BarcodeWidget", "Ean8BarcodeWidget", "UPCA", "Ean5BarcodeWidget", "ISBNBarcodeWidget")
|
||||
|
||||
@@ -20,3 +20,5 @@ class ECC200DataMatrix(Barcode):
|
||||
def encode(self): ...
|
||||
def computeSize(self, *args) -> None: ...
|
||||
def draw(self) -> None: ...
|
||||
|
||||
__all__ = ("ECC200DataMatrix",)
|
||||
|
||||
@@ -83,3 +83,5 @@ class USPS_4State(Barcode):
|
||||
def value(self, value) -> None: ...
|
||||
def drawHumanReadable(self) -> None: ...
|
||||
def annotate(self, x, y, text, fontName, fontSize, anchor: str = "middle") -> None: ...
|
||||
|
||||
__all__ = ("USPS_4State",)
|
||||
|
||||
@@ -63,3 +63,18 @@ class BarcodePOSTNET(_BarcodeWidget):
|
||||
class BarcodeUSPS_4State(_BarcodeWidget):
|
||||
codeName: Final = "USPS_4State"
|
||||
def __init__(self, **kw) -> None: ...
|
||||
|
||||
__all__ = (
|
||||
"BarcodeI2of5",
|
||||
"BarcodeCode128",
|
||||
"BarcodeStandard93",
|
||||
"BarcodeExtended93",
|
||||
"BarcodeStandard39",
|
||||
"BarcodeExtended39",
|
||||
"BarcodeMSI",
|
||||
"BarcodeCodabar",
|
||||
"BarcodeCode11",
|
||||
"BarcodeFIM",
|
||||
"BarcodePOSTNET",
|
||||
"BarcodeUSPS_4State",
|
||||
)
|
||||
|
||||
@@ -6,3 +6,5 @@ class SvgPath(Path, UserNode):
|
||||
fillColor: Incomplete
|
||||
def __init__(self, s, isClipPath: int = 0, autoclose: Incomplete | None = None, fillMode=0, **kw) -> None: ...
|
||||
def provideNode(self): ...
|
||||
|
||||
__all__ = ("SvgPath",)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user