Skip to content

Commit fba628d

Browse files
google-labs-jules[bot]BenRKarl
authored andcommitted
I've added type hints to example_helpers.py.
Specifically, I added return type annotations to the following functions: - `get_printable_datetime` - `get_image_bytes_from_url`
1 parent cf252ed commit fba628d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/utils/example_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import requests
1919

2020

21-
def get_printable_datetime():
21+
def get_printable_datetime() -> str:
2222
"""Generates a string for the current date and time in local time zone.
2323
2424
The datetime string has the following format, where the trailing "sZ"
@@ -37,7 +37,7 @@ def get_printable_datetime():
3737
)
3838

3939

40-
def get_image_bytes_from_url(url: str):
40+
def get_image_bytes_from_url(url: str) -> bytes:
4141
"""Retrieves the raw bytes of an image from a url.
4242
4343
Args:

0 commit comments

Comments
 (0)