From 16be75e02ce57189f7b88ec63159f00ad2546941 Mon Sep 17 00:00:00 2001 From: Catherine Date: Fri, 3 Mar 2023 09:03:53 +0000 Subject: [PATCH] lib.data: fix typo. --- amaranth/lib/data.py | 2 +- tests/test_lib_data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amaranth/lib/data.py b/amaranth/lib/data.py index 3167536..4bd010d 100644 --- a/amaranth/lib/data.py +++ b/amaranth/lib/data.py @@ -425,7 +425,7 @@ class _AggregateMeta(ShapeCastable, type): else: # This is a class that has a base class with a layout and annotations. Such a class # is not well-formed. - raise TypeError("Aggregate class '{}' must either inherits or specify a layout, " + raise TypeError("Aggregate class '{}' must either inherit or specify a layout, " "not both" .format(name)) diff --git a/tests/test_lib_data.py b/tests/test_lib_data.py index 2ab0092..6ed9693 100644 --- a/tests/test_lib_data.py +++ b/tests/test_lib_data.py @@ -635,7 +635,7 @@ class StructTestCase(FHDLTestCase): a: 1 with self.assertRaisesRegex(TypeError, - r"^Aggregate class 'Sd' must either inherits or specify a layout, not both$"): + r"^Aggregate class 'Sd' must either inherit or specify a layout, not both$"): class Sd(Sb): b: 1