mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
[flake8] Improve Statistic typing (#12313)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user