Skip to content

Commit d365bdc

Browse files
authored
I've added type annotations to examples/example_helpers. (#952)
1 parent cf252ed commit d365bdc

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)