def test_priority(self) -> None: options = RpcOptions() self.assertIsInstance(options.priority, Priority) options.priority = Priority.HIGH self.assertEquals(options.priority, Priority.HIGH) with self.assertRaises(TypeError): options.priority = 1 # type: ignore
def test_priority(self) -> None: options = RpcOptions() self.assertIsInstance(options.priority, Priority) options.priority = Priority.HIGH self.assertEquals(options.priority, Priority.HIGH) with self.assertRaises(TypeError): # pyre-fixme[8]: Attribute has type `Priority`; used as `int`. options.priority = 1