|
35 | 35 |
|
36 | 36 | # noinspection SpellCheckingInspection |
37 | 37 | def make_source_manifest(entrypoint, environment, app_mode): |
38 | | - # type: (str, Environment, AppMode) -> dict |
| 38 | + # type: (str, Environment, AppMode) -> typing.Dict[str, typing.Any] |
39 | 39 | package_manager = environment.package_manager |
40 | 40 |
|
41 | 41 | # noinspection SpellCheckingInspection |
@@ -188,7 +188,7 @@ def make_notebook_source_bundle( |
188 | 188 | environment, # type: Environment |
189 | 189 | extra_files=None, # type: typing.Optional[typing.List[str]] |
190 | 190 | ): |
191 | | - # type: (...) -> io.BufferedRandom |
| 191 | + # type: (...) -> typing.IO[bytes] |
192 | 192 | """Create a bundle containing the specified notebook and python environment. |
193 | 193 |
|
194 | 194 | Returns a file-like object containing the bundle tarball. |
@@ -240,7 +240,7 @@ def make_notebook_html_bundle( |
240 | 240 | python, # type: str |
241 | 241 | check_output=subprocess.check_output, # type: typing.Callable |
242 | 242 | ): |
243 | | - # type: (...) -> io.BufferedRandom |
| 243 | + # type: (...) -> typing.IO[bytes] |
244 | 244 | # noinspection SpellCheckingInspection |
245 | 245 | cmd = [ |
246 | 246 | python, |
@@ -413,7 +413,7 @@ def make_api_manifest( |
413 | 413 | extra_files=None, # type: typing.Optional[typing.List[str]] |
414 | 414 | excludes=None, # type: typing.Optional[typing.List[str]] |
415 | 415 | ): |
416 | | - # type: (...) -> typing.Tuple[str, typing.List[str]] |
| 416 | + # type: (...) -> typing.Tuple[typing.Dict[str, typing.Any], typing.List[str]] |
417 | 417 | """ |
418 | 418 | Makes a manifest for an API. |
419 | 419 |
|
@@ -444,7 +444,7 @@ def make_api_bundle( |
444 | 444 | extra_files=None, # type: typing.Optional[typing.List[str]] |
445 | 445 | excludes=None, # type: typing.Optional[typing.List[str]] |
446 | 446 | ): |
447 | | - # type: (...) -> io.BufferedRandom |
| 447 | + # type: (...) -> typing.IO[bytes] |
448 | 448 | """ |
449 | 449 | Create an API bundle, given a directory path and a manifest. |
450 | 450 |
|
|
0 commit comments