mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -5,7 +5,7 @@ from abc import abstractmethod
|
||||
from distutils.dist import Distribution
|
||||
|
||||
class Command:
|
||||
sub_commands = ... # type: List[Tuple[str, Union[Callable[[], bool], str, None]]]
|
||||
sub_commands: List[Tuple[str, Union[Callable[[], bool], str, None]]]
|
||||
def __init__(self, dist: Distribution) -> None: ...
|
||||
@abstractmethod
|
||||
def initialize_options(self) -> None: ...
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Stubs for distutils.debug
|
||||
|
||||
DEBUG = ... # type: bool
|
||||
DEBUG: bool
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
from typing import Mapping, Optional, Union
|
||||
from distutils.ccompiler import CCompiler
|
||||
|
||||
PREFIX = ... # type: str
|
||||
EXEC_PREFIX = ... # type: str
|
||||
PREFIX: str
|
||||
EXEC_PREFIX: str
|
||||
|
||||
def get_config_var(name: str) -> Union[int, str, None]: ...
|
||||
def get_config_vars(*args: str) -> Mapping[str, Union[int, str]]: ...
|
||||
|
||||
Reference in New Issue
Block a user