Skip to content

Commit b4c3e2c

Browse files
authored
Concrete return type for SymbolTable.get_identifiers (#8054)
1 parent ad48606 commit b4c3e2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/symtable.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
from _collections_abc import dict_keys
23
from collections.abc import Sequence
34
from typing import Any
45

@@ -18,7 +19,7 @@ class SymbolTable:
1819
if sys.version_info < (3, 9):
1920
def has_exec(self) -> bool: ...
2021

21-
def get_identifiers(self) -> Sequence[str]: ...
22+
def get_identifiers(self) -> dict_keys[str, int]: ...
2223
def lookup(self, name: str) -> Symbol: ...
2324
def get_symbols(self) -> list[Symbol]: ...
2425
def get_children(self) -> list[SymbolTable]: ...

0 commit comments

Comments
 (0)