Fixed typing in examples

This commit is contained in:
Rhet Turnbull
2022-04-01 18:16:23 -07:00
parent d1aa4e92bd
commit 1f40161950

View File

@@ -1,10 +1,12 @@
""" Example function for use with osxphotos export --post-function option """ """ Example function for use with osxphotos export --post-function option """
from osxphotos import PhotoInfo, ExportResults from typing import Callable
from osxphotos import ExportResults, PhotoInfo
def post_function( def post_function(
photo: PhotoInfo, results: ExportResults, verbose: callable, **kwargs photo: PhotoInfo, results: ExportResults, verbose: Callable, **kwargs
): ):
"""Call this with osxphotos export /path/to/export --post-function post_function.py::post_function """Call this with osxphotos export /path/to/export --post-function post_function.py::post_function
This will get called immediately after the photo has been exported This will get called immediately after the photo has been exported