From 7bc9c1625eb0df0500e70de96f3e1a698bb8c05a Mon Sep 17 00:00:00 2001 From: kasium <15907922+kasium@users.noreply.github.com> Date: Tue, 25 Jan 2022 09:21:41 +0100 Subject: [PATCH] Fix missing return type in pep8ext_naming (#7031) --- stubs/pep8-naming/pep8ext_naming.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/pep8-naming/pep8ext_naming.pyi b/stubs/pep8-naming/pep8ext_naming.pyi index cdd4dfb19..9c6fd6fb8 100644 --- a/stubs/pep8-naming/pep8ext_naming.pyi +++ b/stubs/pep8-naming/pep8ext_naming.pyi @@ -1,6 +1,6 @@ import ast from argparse import Namespace -from typing import Any +from typing import Any, Generator __version__: str @@ -22,7 +22,7 @@ class NamingChecker: def add_options(cls, parser: Any) -> None: ... @classmethod def parse_options(cls, option: Namespace) -> None: ... - def run(self): ... + def run(self) -> Generator[tuple[int, int, str, type[Any]], None, None]: ... def __getattr__(self, name: str) -> Any: ... # incomplete (other attributes are normally not accessed) def __getattr__(name: str) -> Any: ... # incomplete (other attributes are normally not accessed)