Skip to content

a sprinkle of unicode #150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions stdlib/2.7/logging/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any, Dict, Optional, Sequence, Tuple, overload
from typing import Any, Dict, Optional, Sequence, Tuple, overload, Union

CRITICAL = 0
FATAL = 0
Expand Down Expand Up @@ -170,15 +170,15 @@ class Logger(Filterer):
disabled = ... # type: Any
def __init__(self, name: str, level: int = ...) -> None: ...
def setLevel(self, level: int) -> None: ...
def debug(self, msg: str, *args, **kwargs) -> None: ...
def info(self, msg: str, *args, **kwargs) -> None: ...
def warning(self, msg: str, *args, **kwargs) -> None: ...
def warn(self, msg: str, *args, **kwargs) -> None: ...
def error(self, msg: str, *args, **kwargs) -> None: ...
def exception(self, msg: str, *args, **kwargs) -> None: ...
def critical(self, msg: str, *args, **kwargs) -> None: ...
def debug(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def info(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def warning(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def warn(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def error(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def exception(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def critical(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
fatal = ... # type: Any
def log(self, level: int, msg: str, *args, **kwargs) -> None: ...
def log(self, level: int, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def findCaller(self) -> Tuple[str, int, str]: ...
def makeRecord(self, name, level, fn, lno, msg, args, exc_info, func=..., extra=...,
sinfo=...): ...
Expand All @@ -199,14 +199,14 @@ class LoggerAdapter:
extra = ... # type: Any
def __init__(self, logger, extra) -> None: ...
def process(self, msg, kwargs): ...
def debug(self, msg: str, *args, **kwargs) -> None: ...
def info(self, msg: str, *args, **kwargs) -> None: ...
def warning(self, msg: str, *args, **kwargs) -> None: ...
def warn(self, msg: str, *args, **kwargs) -> None: ...
def error(self, msg: str, *args, **kwargs) -> None: ...
def exception(self, msg: str, *args, **kwargs) -> None: ...
def critical(self, msg: str, *args, **kwargs) -> None: ...
def log(self, level: int, msg: str, *args, **kwargs) -> None: ...
def debug(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def info(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def warning(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def warn(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def error(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def exception(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def critical(self, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def log(self, level: int, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def isEnabledFor(self, level: int) -> bool: ...
def setLevel(self, level: int) -> None: ...
def getEffectiveLevel(self) -> int: ...
Expand All @@ -218,16 +218,16 @@ def critical(msg: str, *args, **kwargs) -> None: ...

fatal = ... # type: Any

def error(msg: str, *args, **kwargs) -> None: ...
def error(msg: Union[str, unicode], *args, **kwargs) -> None: ...
@overload
def exception(msg: str, *args, **kwargs) -> None: ...
def exception(msg: Union[str, unicode], *args, **kwargs) -> None: ...
@overload
def exception(exception: Exception, *args, **kwargs) -> None: ...
def warning(msg: str, *args, **kwargs) -> None: ...
def warn(msg: str, *args, **kwargs) -> None: ...
def info(msg: str, *args, **kwargs) -> None: ...
def debug(msg: str, *args, **kwargs) -> None: ...
def log(level: int, msg: str, *args, **kwargs) -> None: ...
def warning(msg: Union[str, unicode], *args, **kwargs) -> None: ...
def warn(msg: Union[str, unicode], *args, **kwargs) -> None: ...
def info(msg: Union[str, unicode], *args, **kwargs) -> None: ...
def debug(msg: Union[str, unicode], *args, **kwargs) -> None: ...
def log(level: int, msg: Union[str, unicode], *args, **kwargs) -> None: ...
def disable(level: int) -> None: ...

class NullHandler(Handler):
Expand Down
2 changes: 1 addition & 1 deletion stdlib/2.7/subprocess.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Popen:
def poll(self) -> int: ...
def wait(self) -> int: ...
# Return str/bytes
def communicate(self, input: str = ...) -> Tuple[str, str]: ...
def communicate(self, input: Union[str, unicode] = ...) -> Tuple[str, str]: ...
def send_signal(self, signal: int) -> None: ...
def terminate(self) -> None: ...
def kill(self) -> None: ...
Expand Down