
'''simple docstring'''





from ..utils import DummyObject, requires_backends






class        UpperCAmelCase_       (						metaclass=a__							):

 '''simple docstring'''
 lowercase_				:						str				=       ["torch", "transformers", "invisible_watermark"]







 def __init__(				self		:     Any ,							*snake_case__		:     Tuple ,							**snake_case__		:     int   ):



   '''simple docstring'''




   requires_backends(self ,							["torch", "transformers", "invisible_watermark"]   )







 @classmethod
 def        UpperCamelCase     (				cls		:     List[Any] ,							*snake_case__		:     Tuple ,							**snake_case__		:     Union[str, Any]   ):



   '''simple docstring'''




   requires_backends(cls ,							["torch", "transformers", "invisible_watermark"]   )







 @classmethod
 def        UpperCamelCase     (				cls		:     Dict ,							*snake_case__		:     Optional[int] ,							**snake_case__		:     Union[str, Any]   ):



   '''simple docstring'''




   requires_backends(cls ,							["torch", "transformers", "invisible_watermark"]   )






class        UpperCAmelCase_       (						metaclass=a__							):

 '''simple docstring'''
 lowercase_				:						List[Any]				=       ["torch", "transformers", "invisible_watermark"]







 def __init__(				self		:     Tuple ,							*snake_case__		:     Tuple ,							**snake_case__		:     Optional[Any]   ):



   '''simple docstring'''




   requires_backends(self ,							["torch", "transformers", "invisible_watermark"]   )







 @classmethod
 def        UpperCamelCase     (				cls		:     Any ,							*snake_case__		:     Dict ,							**snake_case__		:     str   ):



   '''simple docstring'''




   requires_backends(cls ,							["torch", "transformers", "invisible_watermark"]   )







 @classmethod
 def        UpperCamelCase     (				cls		:     int ,							*snake_case__		:     List[Any] ,							**snake_case__		:     Union[str, Any]   ):



   '''simple docstring'''




   requires_backends(cls ,							["torch", "transformers", "invisible_watermark"]   )





'''simple docstring'''





from doctest import testmod
from math import sqrt







def snake_case_    (				lowercase__		):
  UpperCAmelCase__			:				list[int]												=       []
  if num < 1:
    return facs
  facs.append(1		)
  if num == 1:
    return facs
  facs.append(lowercase__		)
  for i in range(2      ,					int(sqrt(lowercase__		)		) + 1		):
    if num % i == 0:  # If i is a factor of num
      facs.append(lowercase__		)
      UpperCAmelCase__			:				Tuple												=       num // i  # num//i is the other factor of num
      if d != i:  # If d and i are distinct
        facs.append(lowercase__		)  # we have found another factor
  facs.sort()
  return facs


if __name__ == "__main__":
      testmod(name="""factors_of_a_number""", verbose=True)



