

'''simple docstring'''







from __future__ import annotations
def 					UpperCAmelCase__			(					UpperCAmelCase__,				UpperCAmelCase__ )	->	list[str]:



       if partitions <= 0:
              raise ValueError("""partitions must be a positive number!""" )
       if partitions > number_of_bytes:
              raise ValueError("""partitions can not > number_of_bytes!""" )
       A_		    =					number_of_bytes // partitions
       A_		    =					[]
       for i in range(_UpperCamelCase ):
              A_		    =					i * bytes_per_partition + 1
              A_		    =					(
                  number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
              )
              allocation_list.append(F'''{start_bytes}-{end_bytes}''' )
       return allocation_list


if __name__ == "__main__":
      import doctest

      doctest.testmod()




"""simple docstring"""






from ..utils import DummyObject, requires_backends





class      lowerCamelCase__   (     metaclass=A				):







					"""simple docstring"""


					__a	       =							["""note_seq"""]






					def __init__(       self    : List[Any] ,       *UpperCamelCase    : List[Any] ,       **UpperCamelCase    : Tuple  ):
												'''simple docstring'''






												requires_backends(self ,       ["""note_seq"""]  )






					@classmethod
					def lowerCamelCase__							(       cls    : Union[str, Any] ,       *UpperCamelCase    : Union[str, Any] ,       **UpperCamelCase    : str  ):
												'''simple docstring'''






												requires_backends(cls ,       ["""note_seq"""]  )






					@classmethod
					def lowerCamelCase__							(       cls    : List[str] ,       *UpperCamelCase    : Optional[Any] ,       **UpperCamelCase    : Union[str, Any]  ):
												'''simple docstring'''






												requires_backends(cls ,       ["""note_seq"""]  )
