mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Use Incomplete instead of Any in __getattr__ (#8903)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Sequence
|
||||
from typing import Any
|
||||
from typing_extensions import Literal
|
||||
|
||||
DEFAULT_STRATEGY: Literal[0]
|
||||
@@ -9,7 +9,7 @@ RLE: Literal[3]
|
||||
FIXED: Literal[4]
|
||||
|
||||
class _Path:
|
||||
def __getattr__(self, item: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, item: str) -> Incomplete: ...
|
||||
|
||||
def path(__x: Sequence[tuple[float, float]] | Sequence[float]) -> _Path: ...
|
||||
def __getattr__(__name: str) -> Any: ... # incomplete
|
||||
def __getattr__(__name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from _typeshed import StrOrBytesPath, StrPath
|
||||
from _typeshed import Incomplete, StrOrBytesPath, StrPath
|
||||
from collections.abc import Iterator
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -19,4 +19,4 @@ def guess_lexer_for_filename(_fn: StrPath, _text: str, **options: Any) -> LexerM
|
||||
def guess_lexer(_text: str | bytes, **options: Any) -> Lexer: ...
|
||||
|
||||
# Having every lexer class here doesn't seem to be worth it
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterator, Mapping
|
||||
from typing import Any
|
||||
|
||||
from pygments.style import StyleMeta
|
||||
from pygments.util import ClassNotFound as ClassNotFound
|
||||
@@ -10,4 +10,4 @@ def get_style_by_name(name) -> StyleMeta: ...
|
||||
def get_all_styles() -> Iterator[str]: ...
|
||||
|
||||
# Having every style class here doesn't seem to be worth it
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from _typeshed import Incomplete, StrOrBytesPath
|
||||
from typing import Any
|
||||
|
||||
from .exceptions import TrashPermissionError as TrashPermissionError
|
||||
@@ -7,4 +7,4 @@ from .exceptions import TrashPermissionError as TrashPermissionError
|
||||
def send2trash(paths: list[Any] | StrOrBytesPath) -> None: ...
|
||||
|
||||
# Marked as incomplete because there are platform-specific plat_foo modules
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
# Explicitly mark this package as incomplete.
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import Any
|
||||
|
||||
class HTMLParser: # actually html5lib.HTMLParser
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class Filter: # actually html5lib.filters.base.Filter
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class SanitizerFilter: # actually html5lib.filters.sanitizer.Filter
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class HTMLSerializer: # actually html5lib.serializer.HTMLSerializer
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class BleachHTMLParser(HTMLParser):
|
||||
tags: list[str] | None
|
||||
@@ -24,4 +24,4 @@ class BleachHTMLSerializer(HTMLSerializer):
|
||||
def escape_base_amp(self, stoken: str) -> Generator[str, None, None]: ...
|
||||
def serialize(self, treewalker, encoding: str | None = ...) -> Generator[str, None, None]: ...
|
||||
|
||||
def __getattr__(__name: str) -> Any: ... # incomplete
|
||||
def __getattr__(__name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Container, Iterable, MutableMapping
|
||||
from re import Pattern
|
||||
from typing import Any, Protocol
|
||||
@@ -44,4 +45,4 @@ class LinkifyFilter(Filter):
|
||||
def __init__(
|
||||
self, source, callbacks=..., skip_tags: Container[str] | None = ..., parse_email: bool = ..., url_re=..., email_re=...
|
||||
) -> None: ...
|
||||
def __getattr__(self, item: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, item: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
from .s3.connection import S3Connection
|
||||
@@ -102,4 +103,4 @@ def storage_uri(
|
||||
def storage_uri_for_key(key): ...
|
||||
|
||||
# Explicitly mark this package as incomplete.
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
RegionData: Any
|
||||
@@ -7,4 +8,4 @@ def connect_to_region(region_name, **kw_params): ...
|
||||
def get_region(region_name, **kw_params): ...
|
||||
|
||||
# Explicitly mark this package as incomplete.
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
def default_backend() -> Any: ...
|
||||
|
||||
# TODO: add some backends
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ...
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from _typeshed import Self
|
||||
from _typeshed import Incomplete, Self
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from collections.abc import Generator, Iterable, Sequence
|
||||
from enum import Enum
|
||||
@@ -477,4 +477,4 @@ def load_der_x509_crl(data: bytes, backend: X509Backend | None = ...) -> Certifi
|
||||
def load_pem_x509_crl(data: bytes, backend: X509Backend | None = ...) -> CertificateRevocationList: ...
|
||||
def load_der_x509_csr(data: bytes, backend: X509Backend | None = ...) -> CertificateSigningRequest: ...
|
||||
def load_pem_x509_csr(data: bytes, backend: X509Backend | None = ...) -> CertificateSigningRequest: ...
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import optparse
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable, Mapping
|
||||
from configparser import RawConfigParser
|
||||
from typing import Any, ClassVar
|
||||
@@ -70,9 +71,9 @@ class OptionParser(optparse.OptionParser, SettingsSpec):
|
||||
*args,
|
||||
**kwargs,
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ConfigParser(RawConfigParser):
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ConfigDeprecationWarning(DeprecationWarning): ...
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
from _typeshed import OpenBinaryModeReading, OpenBinaryModeWriting, OpenTextModeReading, OpenTextModeWriting, SupportsWrite
|
||||
from _typeshed import (
|
||||
Incomplete,
|
||||
OpenBinaryModeReading,
|
||||
OpenBinaryModeWriting,
|
||||
OpenTextModeReading,
|
||||
OpenTextModeWriting,
|
||||
SupportsWrite,
|
||||
)
|
||||
from re import Pattern
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
@@ -64,7 +71,7 @@ class FileInput(Input):
|
||||
|
||||
class FileOutput(Output):
|
||||
mode: ClassVar[OpenTextModeWriting | OpenBinaryModeWriting]
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class BinaryFileOutput(FileOutput): ...
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Protocol
|
||||
from _typeshed import Incomplete
|
||||
from typing import Protocol
|
||||
|
||||
from docutils.utils import Reporter
|
||||
|
||||
@@ -9,6 +10,6 @@ class _LanguageModule(Protocol):
|
||||
|
||||
class LanguageImporter:
|
||||
def __call__(self, language_code: str, reporter: Reporter | None = ...) -> _LanguageModule: ...
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
get_language: LanguageImporter
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import xml.dom.minidom
|
||||
from _typeshed import Self
|
||||
from _typeshed import Incomplete, Self
|
||||
from abc import abstractmethod
|
||||
from collections.abc import Callable, Generator, Iterable, Sequence
|
||||
from typing import Any, ClassVar, Protocol, TypeVar, overload
|
||||
@@ -102,7 +102,7 @@ class Element(Node):
|
||||
def deepcopy(self: Self) -> Self: ...
|
||||
def pformat(self, indent: str = ..., level: int = ...) -> str: ...
|
||||
def astext(self) -> str: ...
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class Text(Node, str):
|
||||
tagname: ClassVar[str]
|
||||
@@ -128,10 +128,10 @@ class document(Root, Structural, Element):
|
||||
def deepcopy(self: Self) -> Self: ...
|
||||
def pformat(self, indent: str = ..., level: int = ...) -> str: ...
|
||||
def astext(self) -> str: ...
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class NodeVisitor:
|
||||
def __init__(self, document: document): ...
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import Literal
|
||||
|
||||
@@ -29,6 +30,6 @@ class Directive:
|
||||
state: states.RSTState,
|
||||
state_machine: states.RSTStateMachine,
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
def convert_directive_function(directive_fn): ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from docutils.languages import _LanguageModule
|
||||
from docutils.nodes import document
|
||||
@@ -9,4 +9,4 @@ def register_directive(name: str, directive: type[Directive]) -> None: ...
|
||||
def directive(
|
||||
directive_name: str, language_module: _LanguageModule, document: document
|
||||
) -> tuple[type[Directive] | None, list[SystemMessage]]: ...
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -16,4 +17,4 @@ def register_local_role(name: str, role_fn: _RoleFn) -> None: ...
|
||||
def role(
|
||||
role_name: str, language_module: _LanguageModule, lineno: int, reporter: Reporter
|
||||
) -> tuple[_RoleFn | None, list[SystemMessage]]: ...
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
class Inliner:
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
from docutils.nodes import Node, document
|
||||
|
||||
class Transform:
|
||||
def __init__(self, document: document, startnode: Node | None = ...): ...
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class Transformer:
|
||||
def __init__(self, document: document): ...
|
||||
def add_transform(self, transform_class: type[Transform], priority: int | None = ..., **kwargs) -> None: ...
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import optparse
|
||||
from _typeshed import Incomplete
|
||||
from builtins import list as _list # alias to avoid name clashes with fields named list
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
from docutils import ApplicationError
|
||||
@@ -28,7 +28,7 @@ class Reporter:
|
||||
source: str
|
||||
report_level: _SystemMessageLevel
|
||||
halt_level: _SystemMessageLevel
|
||||
def __getattr__(self, __name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, __name: str) -> Incomplete: ...
|
||||
|
||||
class SystemMessage(ApplicationError):
|
||||
level: _SystemMessageLevel
|
||||
@@ -36,4 +36,4 @@ class SystemMessage(ApplicationError):
|
||||
|
||||
def new_reporter(source_path: str, settings: optparse.Values) -> Reporter: ...
|
||||
def new_document(source_path: str, settings: optparse.Values | None = ...) -> document: ...
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import argparse
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Sequence
|
||||
from typing import Any
|
||||
|
||||
@@ -23,6 +24,6 @@ class BugBearChecker:
|
||||
max_line_length: int = ...,
|
||||
options: argparse.Namespace | None = ...,
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(self, name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from typing import Any, ClassVar
|
||||
|
||||
@@ -8,4 +9,4 @@ class BuiltinsChecker:
|
||||
def __init__(self, tree: ast.AST, filename: str) -> None: ...
|
||||
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import argparse
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import Any, ClassVar
|
||||
|
||||
@@ -17,4 +18,4 @@ class pep257Checker:
|
||||
def parse_options(cls, options: argparse.Namespace) -> None: ...
|
||||
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import argparse
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Generator
|
||||
from typing import Any, ClassVar
|
||||
|
||||
@@ -13,4 +14,4 @@ class Plugin:
|
||||
def __init__(self, tree: ast.AST) -> None: ...
|
||||
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import ast
|
||||
from _typeshed import Incomplete
|
||||
from argparse import Namespace
|
||||
from collections.abc import Generator, Iterable
|
||||
from typing import Any
|
||||
@@ -25,6 +26,6 @@ class NamingChecker:
|
||||
def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ...
|
||||
def tag_class_functions(self, cls_node: ast.ClassDef) -> None: ...
|
||||
def set_function_nodes_types(self, nodes: Iterable[ast.AST], ismetaclass: bool, late_decoration: dict[str, str]) -> None: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(self, name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)
|
||||
def __getattr__(name: str) -> Incomplete: ... # incomplete (other attributes are normally not accessed)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from typing import Any
|
||||
from _typeshed import Incomplete
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -177,7 +177,7 @@ class Connection:
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class Context:
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
def __init__(self, method: int) -> None: ...
|
||||
def load_verify_locations(self, cafile: str | None, capath: str | None = ...) -> None: ...
|
||||
def set_options(self, options: int) -> None: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable
|
||||
from typing import Any, overload
|
||||
|
||||
@@ -12,4 +13,4 @@ def lazy_fixture(names: str) -> LazyFixture: ...
|
||||
def lazy_fixture(names: Iterable[str]) -> list[LazyFixture] | Any: ...
|
||||
def is_lazy_fixture(val: Any) -> bool: ...
|
||||
def pytest_configure() -> None: ...
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
from typing import Any
|
||||
@@ -7,7 +8,7 @@ from .event import EventManager
|
||||
from .option import OptionManager
|
||||
from .view import ViewManager
|
||||
|
||||
def __getattr__(name: str) -> Any: ... # incomplete
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
|
||||
class ManagedObject: ...
|
||||
|
||||
@@ -15,7 +16,7 @@ class ManagedEntity(ManagedObject):
|
||||
_moId: str
|
||||
obj: None
|
||||
name: str
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ServiceInstanceContent:
|
||||
setting: OptionManager
|
||||
@@ -24,12 +25,12 @@ class ServiceInstanceContent:
|
||||
viewManager: ViewManager
|
||||
perfManager: PerformanceManager
|
||||
eventManager: EventManager
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ServiceInstance:
|
||||
content: ServiceInstanceContent
|
||||
def CurrentTime(self) -> datetime: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class PerformanceManager:
|
||||
class MetricId:
|
||||
@@ -42,7 +43,7 @@ class PerformanceManager:
|
||||
groupInfo: Any
|
||||
nameInfo: Any
|
||||
rollupType: Any
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class QuerySpec:
|
||||
entity: ManagedEntity
|
||||
@@ -50,13 +51,13 @@ class PerformanceManager:
|
||||
intervalId: int
|
||||
maxSample: int
|
||||
startTime: datetime
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class EntityMetricBase:
|
||||
entity: ManagedEntity
|
||||
def QueryPerfCounterByLevel(self, collection_level: int) -> list[PerformanceManager.PerfCounterInfo]: ...
|
||||
def QueryPerf(self, querySpec: list[PerformanceManager.QuerySpec]) -> list[PerformanceManager.EntityMetricBase]: ...
|
||||
def __getattr__(self, name: str) -> Any: ... # incomplete
|
||||
def __getattr__(self, name: str) -> Incomplete: ...
|
||||
|
||||
class ClusterComputeResource(ManagedEntity): ...
|
||||
class ComputeResource(ManagedEntity): ...
|
||||
|
||||
Reference in New Issue
Block a user