mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-29 22:32:11 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -14,10 +14,10 @@ from Queue import Queue
|
||||
|
||||
|
||||
class DummyProcess(threading.Thread):
|
||||
_children = ... # type: weakref.WeakKeyDictionary
|
||||
_parent = ... # type: threading.Thread
|
||||
_pid = ... # type: None
|
||||
_start_called = ... # type: bool
|
||||
_children: weakref.WeakKeyDictionary
|
||||
_parent: threading.Thread
|
||||
_pid: None
|
||||
_start_called: bool
|
||||
def __init__(self, group=..., target=..., name=..., args=..., kwargs=...) -> None: ...
|
||||
@property
|
||||
def exitcode(self) -> Optional[int]: ...
|
||||
@@ -27,15 +27,15 @@ Process = DummyProcess
|
||||
|
||||
# This should be threading._Condition but threading.pyi exports it as Condition
|
||||
class Condition(threading.Condition):
|
||||
notify_all = ... # type: Any
|
||||
notify_all: Any
|
||||
|
||||
class Namespace(object):
|
||||
def __init__(self, **kwds) -> None: ...
|
||||
|
||||
class Value(object):
|
||||
_typecode = ... # type: Any
|
||||
_value = ... # type: Any
|
||||
value = ... # type: Any
|
||||
_typecode: Any
|
||||
_value: Any
|
||||
value: Any
|
||||
def __init__(self, typecode, value, lock=...) -> None: ...
|
||||
def _get(self) -> Any: ...
|
||||
def _set(self, value) -> None: ...
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
from Queue import Queue
|
||||
from typing import Any, List, Optional, Tuple, Type
|
||||
|
||||
families = ... # type: List[None]
|
||||
families: List[None]
|
||||
|
||||
class Connection(object):
|
||||
_in = ... # type: Any
|
||||
_out = ... # type: Any
|
||||
recv = ... # type: Any
|
||||
recv_bytes = ... # type: Any
|
||||
send = ... # type: Any
|
||||
send_bytes = ... # type: Any
|
||||
_in: Any
|
||||
_out: Any
|
||||
recv: Any
|
||||
recv_bytes: Any
|
||||
send: Any
|
||||
send_bytes: Any
|
||||
def __init__(self, _in, _out) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def poll(self, timeout=...) -> Any: ...
|
||||
|
||||
class Listener(object):
|
||||
_backlog_queue = ... # type: Optional[Queue]
|
||||
address = ... # type: Any
|
||||
_backlog_queue: Optional[Queue]
|
||||
address: Any
|
||||
def __init__(self, address=..., family=..., backlog=...) -> None: ...
|
||||
def accept(self) -> Connection: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
@@ -27,7 +27,7 @@ class Process:
|
||||
def exitcode(self): ...
|
||||
@property
|
||||
def ident(self): ...
|
||||
pid = ... # type: Any
|
||||
pid: Any
|
||||
|
||||
class AuthenticationString(bytes):
|
||||
def __reduce__(self): ...
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from typing import Any, Optional
|
||||
import threading
|
||||
|
||||
SUBDEBUG = ... # type: Any
|
||||
SUBWARNING = ... # type: Any
|
||||
SUBDEBUG: Any
|
||||
SUBWARNING: Any
|
||||
|
||||
def sub_debug(msg, *args): ...
|
||||
def debug(msg, *args): ...
|
||||
|
||||
Reference in New Issue
Block a user