Pyupgrade to 3.8+. NFCI

This commit is contained in:
Catherine 2023-11-14 12:58:53 +00:00
parent e55dec9615
commit f9da3c0d16
37 changed files with 240 additions and 240 deletions

View file

@ -139,7 +139,7 @@ class AttrsTestCase(FHDLTestCase):
fn = lambda self: "FOO"
a = Attrs(FOO=fn)
self.assertEqual(a["FOO"], fn)
self.assertEqual(repr(a), "(attrs FOO={!r})".format(fn))
self.assertEqual(repr(a), f"(attrs FOO={fn!r})")
def test_wrong_value(self):
with self.assertRaisesRegex(TypeError,