stdlib: Improve many __iter__ and constructor methods (#7112)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-02-02 19:14:57 +01:00
1 parent b327f64d9a
commit 7ccbbdb30a
11 files changed
+36 -24

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
import sys
import types
from _typeshed import Self
from opcode import * # `dis` re-exports it as a part of public API
from typing import IO, Any, Callable, Iterator, NamedTuple, Union
@@ -54,7 +55,7 @@ class Bytecode:
def info(self) -> str: ...
def dis(self) -> str: ...
@classmethod
def from_traceback(cls, tb: types.TracebackType) -> Bytecode: ...
def from_traceback(cls: type[Self], tb: types.TracebackType) -> Self: ...
COMPILER_FLAG_NAMES: dict[int, str]