From 4f1eb9a63ccda4e1eb79670fb978cdc9efda4ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20S?= Date: Fri, 10 Jun 2016 20:49:37 +0200 Subject: [PATCH] Fix argument type for configparser.write (#284) --- stdlib/3/configparser.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/configparser.pyi b/stdlib/3/configparser.pyi index 584da442f..b495d5925 100644 --- a/stdlib/3/configparser.pyi +++ b/stdlib/3/configparser.pyi @@ -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: ...