mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 14:45:23 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -2,10 +2,10 @@ from typing import Any, AnyStr, IO, Iterable, Iterator, List, Optional, overload
|
||||
from thread import LockType
|
||||
from random import Random
|
||||
|
||||
TMP_MAX = ... # type: int
|
||||
tempdir = ... # type: str
|
||||
template = ... # type: str
|
||||
_name_sequence = ... # type: Optional[_RandomNameSequence]
|
||||
TMP_MAX: int
|
||||
tempdir: str
|
||||
template: str
|
||||
_name_sequence: Optional[_RandomNameSequence]
|
||||
|
||||
class _RandomNameSequence:
|
||||
characters: str = ...
|
||||
@@ -81,7 +81,7 @@ def SpooledTemporaryFile(
|
||||
...
|
||||
|
||||
class TemporaryDirectory:
|
||||
name = ... # type: Any # Can be str or unicode
|
||||
name: Any
|
||||
def __init__(self,
|
||||
suffix: Union[bytes, unicode] = ...,
|
||||
prefix: Union[bytes, unicode] = ...,
|
||||
|
||||
Reference in New Issue
Block a user