






from ..utils import requires_backends


UpperCAmelCase__            =	None






class 	lowercase_      :






      '''simple docstring'''




      def __init__(   self   :		Dict				,      *__UpperCAmelCase   :		str				,      **__UpperCAmelCase   :		Tuple						)					->Any:




       """simple docstring"""


       requires_backends(self				,      ['''detectron2''']						)







      @classmethod
      def    __lowerCAmelCase      (   cls   :		Any				,      *__UpperCAmelCase   :		Optional[int]				,      **__UpperCAmelCase   :		Optional[int]						)					->List[Any]:




       """simple docstring"""


       requires_backends(cls				,      ['''detectron2''']						)










from collections import namedtuple

UpperCAmelCase__            =	namedtuple("from_to", "from_ to")

UpperCAmelCase__            =	{
    "atm": from_to(1, 1),
    "pascal": from_to(0.000_0098, 101325),
    "bar": from_to(0.98_6923, 1.0_1325),
    "kilopascal": from_to(0.0098_6923, 101.325),
    "megapascal": from_to(9.8_6923, 0.10_1325),
    "psi": from_to(0.06_8046, 14.6959),
    "inHg": from_to(0.033_4211, 29.9213),
    "torr": from_to(0.0013_1579, 760),
}
def 		_a					(   a				:float			,							a				:str			,							a				:str				)							->    float:
 if from_type not in PRESSURE_CONVERSION:
  raise ValueError(
      F"""Invalid 'from_type' value: {from_type!r}  Supported values are:\n"""
      + ''', '''.join(a				)				)
 if to_type not in PRESSURE_CONVERSION:
  raise ValueError(
      F"""Invalid 'to_type' value: {to_type!r}.  Supported values are:\n"""
      + ''', '''.join(a				)				)
 return (
     value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
 )


if __name__ == "__main__":
     import doctest

     doctest.testmod()


