From 1050b383a3e0982dc264f15818952eaa28d286a8 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Tue, 22 Aug 2017 17:59:59 -0400 Subject: [PATCH] RawConfigParser dict_type argument should be a Type (#1572) Fixes #1571. --- 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 765ee7069..33d6fce0f 100644 --- a/stdlib/3/configparser.pyi +++ b/stdlib/3/configparser.pyi @@ -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] = ...,