in src/azstoragetorch/_client.py [0:0]
def _sdk_supports_memoryview_for_writes(self) -> bool:
# The SDK validates iterable bytes objects passed to its HTTP request layer
# expose an __iter__() method. However, memoryview objects did not expose an
# __iter__() method till Python 3.10.
#
# We still want to leverage memorviews when we can to avoid unnecessary copies. So
# we check the Python version to determine if we can use memoryviews for writes.
return sys.version_info >= (3, 10)