fix the type definition of namer function (#1498)

This commit is contained in:
vim345
2017-08-07 16:36:05 -07:00
committed by Jelle Zijlstra
parent 6031b37be9
commit 228615b307

View File

@@ -29,7 +29,7 @@ class WatchedFileHandler(Handler):
if sys.version_info >= (3,):
class BaseRotatingHandler(FileHandler):
namer = ... # type: Optional[Callable[[str], None]]
namer = ... # type: Optional[Callable[[str], str]]
rotator = ... # type: Optional[Callable[[str, str], None]]
def __init__(self, filename: str, mode: str,
encoding: Optional[str] = ...,