mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use explicit "# type: str" instead of '' shortcut.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
from typing import Tuple, BinaryIO
|
||||
|
||||
# global variables
|
||||
tempdir = ''
|
||||
template = ''
|
||||
tempdir = ... # type: str
|
||||
template = ... # type: str
|
||||
|
||||
# TODO text files
|
||||
|
||||
@@ -29,7 +29,7 @@ def SpooledTemporaryFile(
|
||||
...
|
||||
|
||||
class TemporaryDirectory:
|
||||
name = ''
|
||||
name = ... # type: str
|
||||
def __init__(self, suffix: str = '', prefix: str = 'tmp',
|
||||
dir: str = None) -> None: ...
|
||||
def cleanup(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user