Skip to content

Commit

Permalink
Added type annotaion comment
Browse files Browse the repository at this point in the history
  • Loading branch information
snobu committed Apr 9, 2019
1 parent d90569e commit fb3d368
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# Set watermark 7 times smaller in width than base image
WATERMARK_WIDTH_RATIO = 7

# Note the type annotation for our output blob, func.Out[bytes],
# since it's an image we'll be writing back.
# See this for more -
# https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python#outputs
def main(blobin: func.InputStream, blobout: func.Out[bytes], context: func.Context):
logging.info(f"--- Python blob trigger function processed blob \n"
f"----- Name: {blobin.name}\n"
Expand Down

0 comments on commit fb3d368

Please sign in to comment.