lib.data: fix typo.
This commit is contained in:
parent
0c4fda92fe
commit
16be75e02c
|
@ -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))
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue