Fix argument type for configparser.write (#284)

This commit is contained in:
Mickaël S
2016-06-10 20:49:37 +02:00
committed by Jukka Lehtosalo
parent e46d308ab4
commit 4f1eb9a63c

View File

@@ -4,7 +4,7 @@
# reading configparser.py.
from typing import (MutableMapping, Mapping, Dict, Sequence, List,
Iterable, Iterator, Callable, Any, TextIO)
Iterable, Iterator, Callable, Any, IO)
# Types only used in type comments only
from typing import Optional, Tuple # noqa
@@ -103,7 +103,7 @@ class ConfigParser(_parser):
def set(self, section: str, option: str, value: str) -> None: ...
def write(self,
fileobject: TextIO,
fileobject: IO[str],
space_around_delimiters: bool = True) -> None: ...
def remove_option(self, section: str, option: str) -> bool: ...