def test_get(self) -> None: x = StrStrMap({"test": "value"}) self.assertEqual(x.get("test"), "value") # pyre-fixme[6]: Expected `str` for 1st param but got `int`. self.assertIs(x.get(5), None) # pyre-fixme[6]: Expected `str` for 1st param but got `Map__string_string`. self.assertIs(x.get(x), None)
def test_get(self) -> None: x = StrStrMap({"test": "value"}) self.assertEqual(x.get("test"), "value") self.assertIs(x.get(5), None) # type: ignore self.assertIs(x.get(x), None) # type: ignore
def test_get(self) -> None: x = StrStrMap({"test": "value"}) self.assertEqual(x.get("test"), "value") self.assertIs(x.get(5), None) # type: ignore self.assertIs(x.get(x), None) # type: ignore