mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
google-cloud-ndb, paramiko, setuptools: remove unnecessary = ...s (#10011)
This commit is contained in:
@@ -66,7 +66,7 @@ def make_connection(*args, **kwargs) -> NoReturn: ...
|
||||
class ModelAttribute: ...
|
||||
|
||||
class _BaseValue(_NotEqualMixin):
|
||||
b_val: object = ...
|
||||
b_val: object
|
||||
def __init__(self, b_val) -> None: ...
|
||||
def __eq__(self, other) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
@@ -110,7 +110,7 @@ class FloatProperty(Property):
|
||||
def __get__(self, entity: Model, unused_cls: type[Model] | None = ...) -> float | list[float] | None: ...
|
||||
|
||||
class _CompressedValue(bytes):
|
||||
z_val: bytes = ...
|
||||
z_val: bytes
|
||||
def __init__(self, z_val: bytes) -> None: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __hash__(self) -> NoReturn: ...
|
||||
@@ -249,7 +249,7 @@ class MetaModel(type):
|
||||
def __init__(cls, name: str, bases, classdict) -> None: ...
|
||||
|
||||
class Model(_NotEqualMixin, metaclass=MetaModel):
|
||||
key: ModelKey = ...
|
||||
key: ModelKey
|
||||
def __init__(_self, **kwargs) -> None: ...
|
||||
def __hash__(self) -> NoReturn: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
@@ -30,10 +30,10 @@ if sys.platform == "win32":
|
||||
class MemoryMap:
|
||||
name: str
|
||||
length: int
|
||||
security_attributes: Any = ...
|
||||
security_attributes: Incomplete | None
|
||||
pos: int
|
||||
filemap: Any = ...
|
||||
view: Any = ...
|
||||
filemap: Incomplete
|
||||
view: Incomplete
|
||||
def __init__(self, name: str, length: int, security_attributes: Incomplete | None = None) -> None: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def seek(self, pos: int) -> None: ...
|
||||
|
||||
@@ -43,7 +43,7 @@ class WorkingSet:
|
||||
self, plugin_env: Environment, full_env: Environment | None = None, fallback: bool = True
|
||||
) -> tuple[list[Distribution], dict[Distribution, Exception]]: ...
|
||||
|
||||
working_set: WorkingSet = ...
|
||||
working_set: WorkingSet
|
||||
|
||||
require = working_set.require
|
||||
run_script = working_set.run_script
|
||||
|
||||
@@ -34,7 +34,7 @@ class _BuildMetaBackend:
|
||||
class _BuildMetaLegacyBackend(_BuildMetaBackend):
|
||||
def run_setup(self, setup_script: str = "setup.py") -> None: ...
|
||||
|
||||
_BACKEND: _BuildMetaBackend = ...
|
||||
_BACKEND: _BuildMetaBackend
|
||||
get_requires_for_build_wheel = _BACKEND.get_requires_for_build_wheel
|
||||
get_requires_for_build_sdist = _BACKEND.get_requires_for_build_sdist
|
||||
prepare_metadata_for_build_wheel = _BACKEND.prepare_metadata_for_build_wheel
|
||||
|
||||
Reference in New Issue
Block a user