Mark some fields as ClassVars (#6510)

This commit is contained in:
kasium
2021-12-06 12:13:40 +01:00
committed by GitHub
parent 4ff23ba762
commit ff68746388
2 changed files with 6 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
import ast
from typing import Any, Generator, Type
from typing import Any, ClassVar, Generator, Type
class BuiltinsChecker:
name: str
version: str
name: ClassVar[str]
version: ClassVar[str]
def __init__(self, tree: ast.AST, filename: str) -> None: ...
def run(self) -> Generator[tuple[int, int, str, Type[Any]], None, None]: ...

View File

@@ -1,8 +1,8 @@
import ast
from typing import Any, Generator, Type
from typing import Any, ClassVar, Generator, Type
class Plugin:
name: str
version: str
name: ClassVar[str]
version: ClassVar[str]
def __init__(self, tree: ast.AST) -> None: ...
def run(self) -> Generator[tuple[int, int, str, Type[Any]], None, None]: ...