mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -9,8 +9,8 @@ from typing import Any, AnyStr, Generic, IO, Iterable, Iterator, List, Optional,
|
||||
|
||||
# global variables
|
||||
TMP_MAX: int
|
||||
tempdir = ... # type: Optional[str]
|
||||
template = ... # type: str
|
||||
tempdir: Optional[str]
|
||||
template: str
|
||||
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
@@ -63,7 +63,7 @@ if sys.version_info >= (3, 5):
|
||||
def __iter__(self) -> Iterator[AnyStr]: ...
|
||||
|
||||
class TemporaryDirectory(Generic[AnyStr]):
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self, suffix: Optional[AnyStr] = ..., prefix: Optional[AnyStr] = ...,
|
||||
dir: Optional[AnyStr] = ...) -> None: ...
|
||||
def cleanup(self) -> None: ...
|
||||
@@ -104,7 +104,7 @@ else:
|
||||
...
|
||||
|
||||
class TemporaryDirectory:
|
||||
name = ... # type: str
|
||||
name: str
|
||||
def __init__(self, suffix: str = ..., prefix: str = ...,
|
||||
dir: Optional[str] = ...) -> None: ...
|
||||
def cleanup(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user