mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
RawConfigParser dict_type argument should be a Type (#1572)
Fixes #1571.
This commit is contained in:
committed by
Guido van Rossum
parent
975c9a09ef
commit
1050b383a3
@@ -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] = ...,
|
||||
|
||||
Reference in New Issue
Block a user