mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Fix argument type for configparser.write (#284)
This commit is contained in:
committed by
Jukka Lehtosalo
parent
e46d308ab4
commit
4f1eb9a63c
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user