Fix context type in pprint.PrettyPrinter.format (#7179)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Nikita Sobolev
2022-02-12 22:51:29 +03:00
committed by GitHub
parent 3b05794ba9
commit 2ce1844905

View File

@@ -1,5 +1,5 @@
import sys
from typing import IO, Any
from typing import IO
if sys.version_info >= (3, 10):
def pformat(
@@ -131,4 +131,4 @@ class PrettyPrinter:
def pprint(self, object: object) -> None: ...
def isreadable(self, object: object) -> bool: ...
def isrecursive(self, object: object) -> bool: ...
def format(self, object: object, context: dict[int, Any], maxlevels: int, level: int) -> tuple[str, bool, bool]: ...
def format(self, object: object, context: dict[int, int], maxlevels: int, level: int) -> tuple[str, bool, bool]: ...