minio / minio-py

MinIO Client SDK for Python
https://docs.min.io/docs/python-client-quickstart-guide.html
Apache License 2.0
822 stars 318 forks source link

Allow duck typing for Progress objects #1321

Closed brianhelba closed 9 months ago

brianhelba commented 11 months ago

It's not strictly necessary for Progress objects to be Threads, as none of the Thread APIs are actually used. Rather, Progress must only be an object which implements set_meta and update methods.

To support (optional) type checking of Progress, this also adds a Progress protocol, which consumers may choose (but are not required) to subclass.

balamurugana commented 9 months ago

Already addressed