Skip to content

Commit 39f9f21

Browse files
committed
libzfs: specify return values in stubs
1 parent 397fff6 commit 39f9f21

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.travis/mypy-stubs/libzfs.pyi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ZFS:
7979
def __setstate_cython__(self, *args, **kwargs): ...
8080

8181
class ZFSBookmark(ZFSObject):
82-
bookmark_name = ... # type: Any
82+
bookmark_name = ... # type: str
8383
parent = ... # type: Any
8484
def __init__(self, *args, **kwargs): ...
8585
def __getstate__(self): ...
@@ -123,7 +123,7 @@ class ZFSImportablePool(ZFSPool):
123123
config = ... # type: Any
124124
error_count = ... # type: Any
125125
features = ... # type: Any
126-
name = ... # type: Any
126+
name = ... # type: str
127127
properties = ... # type: Any
128128
root_dataset = ... # type: Any
129129
__pyx_vtable__ = ... # type: Any
@@ -135,7 +135,7 @@ class ZFSImportablePool(ZFSPool):
135135
def __setstate_cython__(self, *args, **kwargs): ...
136136

137137
class ZFSObject:
138-
name = ... # type: Any
138+
name = ... # type: str
139139
pool = ... # type: Any
140140
properties = ... # type: Any
141141
root = ... # type: Any
@@ -157,9 +157,9 @@ class ZFSPool:
157157
features = ... # type: Any
158158
groups = ... # type: Any
159159
guid = ... # type: Any
160-
hostname = ... # type: Any
160+
hostname = ... # type: str
161161
log_vdevs = ... # type: Any
162-
name = ... # type: Any
162+
name = ... # type: str
163163
properties = ... # type: Any
164164
root = ... # type: Any
165165
root_dataset = ... # type: Any
@@ -185,7 +185,7 @@ class ZFSPool:
185185
class ZFSProperty:
186186
allowed_values = ... # type: Any
187187
dataset = ... # type: Any
188-
name = ... # type: Any
188+
name = ... # type: str
189189
parsed = ... # type: Any
190190
rawvalue = ... # type: Any
191191
source = ... # type: Any
@@ -235,7 +235,7 @@ class ZFSSnapshot(ZFSObject):
235235
def __setstate_cython__(self, *args, **kwargs): ...
236236

237237
class ZFSUserProperty(ZFSProperty):
238-
name = ... # type: Any
238+
name = ... # type: str
239239
rawvalue = ... # type: Any
240240
source = ... # type: Any
241241
value = ... # type: Any
@@ -292,7 +292,7 @@ class ZFSVdevStats:
292292
class ZPoolFeature:
293293
description = ... # type: Any
294294
guid = ... # type: Any
295-
name = ... # type: Any
295+
name = ... # type: str
296296
pool = ... # type: Any
297297
state = ... # type: Any
298298
def __init__(self, *args, **kwargs): ...
@@ -303,7 +303,7 @@ class ZPoolFeature:
303303

304304
class ZPoolProperty:
305305
allowed_values = ... # type: Any
306-
name = ... # type: Any
306+
name = ... # type: str
307307
parsed = ... # type: Any
308308
pool = ... # type: Any
309309
rawvalue = ... # type: Any

0 commit comments

Comments
 (0)