mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -6,7 +6,7 @@ class Lock(): ...
|
||||
class Process(): ...
|
||||
|
||||
class Queue():
|
||||
def get(block: bool = None, timeout: float = None) -> Any: ...
|
||||
def get(block: bool = ..., timeout: float = ...) -> Any: ...
|
||||
|
||||
class Value():
|
||||
def __init__(typecode_or_type: str, *args: Any, lock: bool = True) -> None: ...
|
||||
def __init__(typecode_or_type: str, *args: Any, lock: bool = ...) -> None: ...
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
from typing import Any
|
||||
|
||||
class BaseManager():
|
||||
def register(typeid: str, callable: Any = None) -> None: ...
|
||||
def register(typeid: str, callable: Any = ...) -> None: ...
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
class ThreadPool():
|
||||
def __init__(self, processes: int = None) -> None: ...
|
||||
def __init__(self, processes: int = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user