




from collections.abc import Sequence

def  SCREAMING_SNAKE_CASE							(       __UpperCamelCase		, __UpperCamelCase = False)      ->					float:
     if not arr:
          return 0

     a     =				0 if allow_empty_subarrays else float("-inf")
     a     =				0.0
     for num in arr:
          a     =				max(0 if allow_empty_subarrays else num		, curr_sum + num)
          a     =				max(lowerCAmelCase__		, lowerCAmelCase__)

     return max_sum


if __name__ == "__main__":
   from doctest import testmod

   testmod()

   lowercase__				:      Tuple	   = [-2, 1, -3, 4, -1, 2, 1, -5, 4]
   print(F'{max_subarray_sum(nums) = }')










lowercase__				:      Optional[int]	   = [
    "DownloadConfig",
    "DownloadManager",
    "DownloadMode",
    "StreamingDownloadManager",
]

from .download_config import DownloadConfig
from .download_manager import DownloadManager, DownloadMode
from .streaming_download_manager import StreamingDownloadManager

