From 87278af3e54a1b809c9c88773d26d2ba3b3fa641 Mon Sep 17 00:00:00 2001 From: melassa Date: Sun, 27 Dec 2020 12:34:28 +0100 Subject: [PATCH] Changed Dict with Mapping in grid/pack/place_configure #4836.2 (#4859) Part of #4836 --- stdlib/3/tkinter/__init__.pyi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index d04e4ad7b..160fcd622 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -4,7 +4,7 @@ from enum import Enum from tkinter.constants import * # comment this out to find undefined identifier names with flake8 from tkinter.font import _FontDescription from types import TracebackType -from typing import Any, Callable, Dict, Generic, List, Optional, Protocol, Tuple, Type, TypeVar, Union, overload +from typing import Any, Callable, Dict, Generic, List, Mapping, Optional, Protocol, Tuple, Type, TypeVar, Union, overload from typing_extensions import Literal, TypedDict # Using anything from tkinter.font in this file means that 'import tkinter' @@ -637,7 +637,7 @@ class Pack: # replaced by **kwargs. def pack_configure( self, - cnf: Optional[Dict[str, Any]] = ..., + cnf: Optional[Mapping[str, Any]] = ..., *, after: Misc = ..., anchor: _Anchor = ..., @@ -680,7 +680,7 @@ class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been placed class Place: def place_configure( self, - cnf: Optional[Dict[str, Any]] = ..., + cnf: Optional[Mapping[str, Any]] = ..., *, anchor: _Anchor = ..., bordermode: Literal["inside", "outside", "ignore"] = ..., @@ -720,7 +720,7 @@ class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gridded class Grid: def grid_configure( self, - cnf: Optional[Dict[str, Any]] = ..., + cnf: Optional[Mapping[str, Any]] = ..., *, column: int = ..., columnspan: int = ...,