Skip to content

Commit

Permalink
Pre-silence Pyre Errors for upcoming upgrade] [batch:48/603] [shard:3/N]
Browse files Browse the repository at this point in the history
Reviewed By: MaggieMoss

Differential Revision: D65288862

fbshipit-source-id: 57424744e600e5ff0b414b4fb978efaf0b304055
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Nov 1, 2024
1 parent b8ecfce commit 50bcf32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions thrift/lib/py3/test/auto_migrate/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def test_getitem(self) -> None:
def test_get(self) -> None:
x = StrStrMap({"test": "value"})
self.assertEqual(x.get("test"), "value")
# pyre-fixme[6]: For 1st argument expected `str` but got `int`.
self.assertIs(x.get(5), None)
# pyre-fixme[6]: For 1st argument expected `str` but got `Map__string_string`.
self.assertIs(x.get(x), None)

def test_contains(self) -> None:
Expand Down

0 comments on commit 50bcf32

Please sign in to comment.