matrix-nio
matrix-nio copied to clipboard
AsyncClient.upload has wrong type annotations for data_provider
upload accepts a callable, SynchronousFile or AsyncFile for the data_provider parameter, but the type annotation only specifies DataProvider, which is just a Callable[[int, int], AsyncDataT]. Thus, passing a file to this function works as expected, but my type checker complains.