mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Mark some fields as ClassVars (#6510)
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
|
||||
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user