mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
Mark some fields as ClassVars (#6510)
This commit is contained in:
1 parent
4ff23ba762
commit
ff68746388
2 files changed
+6
-6
No files matched your search
@@ -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