RawConfigParser dict_type argument should be a Type (#1572)

Fixes #1571.
This commit is contained in:
Daniel Watkins
2017-08-22 17:59:59 -04:00
committed by Guido van Rossum
parent 975c9a09ef
commit 1050b383a3

View File

@@ -4,7 +4,7 @@
import sys
from typing import (AbstractSet, MutableMapping, Mapping, Dict, Sequence, List,
Union, Iterable, Iterator, Callable, Any, IO, overload,
Optional, Pattern, TypeVar)
Optional, Pattern, Type, TypeVar)
# Types only used in type comments only
from typing import Optional, Tuple # noqa
@@ -57,7 +57,7 @@ class LegacyInterpolation(Interpolation): ...
class RawConfigParser(_parser):
def __init__(self,
defaults: Optional[_section] = ...,
dict_type: Mapping[str, str] = ...,
dict_type: Type[Mapping[str, str]] = ...,
allow_no_value: bool = ...,
*,
delimiters: Sequence[str] = ...,