mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
committed by
Jelle Zijlstra
parent
556f354e1e
commit
df953ca385
@@ -1,6 +1,7 @@
|
||||
# Stubs for logging.config (Python 3.4)
|
||||
|
||||
from typing import Any, Callable, Dict, Optional, IO, Union
|
||||
from threading import Thread
|
||||
import sys
|
||||
if sys.version_info >= (3,):
|
||||
from configparser import RawConfigParser
|
||||
@@ -23,10 +24,10 @@ if sys.version_info >= (3, 4):
|
||||
defaults: Optional[Dict[str, str]] = ...,
|
||||
disable_existing_loggers: bool = ...) -> None: ...
|
||||
def listen(port: int = ...,
|
||||
verify: Optional[Callable[[bytes], Optional[bytes]]] = ...) -> None: ...
|
||||
verify: Optional[Callable[[bytes], Optional[bytes]]] = ...) -> Thread: ...
|
||||
else:
|
||||
def fileConfig(fname: Union[str, IO[str]],
|
||||
defaults: Optional[Dict[str, str]] = ...,
|
||||
disable_existing_loggers: bool = ...) -> None: ...
|
||||
def listen(port: int = ...) -> None: ...
|
||||
def listen(port: int = ...) -> Thread: ...
|
||||
def stopListening() -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user