mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Use explicit "# type: str" instead of '' shortcut.
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
from typing import Tuple, IO
|
||||
|
||||
# global variables
|
||||
tempdir = ''
|
||||
template = ''
|
||||
tempdir = ... # type: str
|
||||
template = ... # type: str
|
||||
|
||||
# TODO text files
|
||||
|
||||
@@ -26,7 +26,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