From b4c3e2c3e16b4d96de0cfdcf23e91ad0240d9166 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Fri, 10 Jun 2022 08:20:50 -0700 Subject: [PATCH] Concrete return type for SymbolTable.get_identifiers (#8054) --- stdlib/symtable.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/symtable.pyi b/stdlib/symtable.pyi index 0f48bc9da..d44b2d792 100644 --- a/stdlib/symtable.pyi +++ b/stdlib/symtable.pyi @@ -1,4 +1,5 @@ import sys +from _collections_abc import dict_keys from collections.abc import Sequence from typing import Any @@ -18,7 +19,7 @@ class SymbolTable: if sys.version_info < (3, 9): def has_exec(self) -> bool: ... - def get_identifiers(self) -> Sequence[str]: ... + def get_identifiers(self) -> dict_keys[str, int]: ... def lookup(self, name: str) -> Symbol: ... def get_symbols(self) -> list[Symbol]: ... def get_children(self) -> list[SymbolTable]: ...