Add @final to several more stdlib classes (#7215)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2022-02-14 15:12:40 -08:00
committed by GitHub
parent a67c316d08
commit a6d9b83263
6 changed files with 13 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
from _typeshed import StrOrBytesPath
from types import CodeType
from typing import Any, Sequence
from typing_extensions import final
def expr(source: str) -> STType: ...
def suite(source: str) -> STType: ...
@@ -14,6 +15,7 @@ def issuite(st: STType) -> bool: ...
class ParserError(Exception): ...
@final
class STType:
def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
def isexpr(self) -> bool: ...