From 57c524d8225faae98611e6b643bb29769afdb3fa Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 10 Jul 2024 13:03:43 +0300 Subject: [PATCH] [flake8] Improve `Statistic` typing (#12313) --- stubs/flake8/flake8/statistics.pyi | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/stubs/flake8/flake8/statistics.pyi b/stubs/flake8/flake8/statistics.pyi index d550ebc91..c6a892985 100644 --- a/stubs/flake8/flake8/statistics.pyi +++ b/stubs/flake8/flake8/statistics.pyi @@ -1,4 +1,3 @@ -from _typeshed import Incomplete from collections.abc import Generator from typing import NamedTuple @@ -18,10 +17,10 @@ class Key(NamedTuple): def matches(self, prefix: str, filename: str | None) -> bool: ... class Statistic: - error_code: Incomplete - filename: Incomplete - message: Incomplete - count: Incomplete + error_code: str + filename: str + message: str + count: int def __init__(self, error_code: str, filename: str, message: str, count: int) -> None: ... @classmethod def create_from(cls, error: Violation) -> Statistic: ...