We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is
Component
1 parent 44d5fac commit 88cbf30Copy full SHA for 88cbf30
amaranth/lib/wiring.py
@@ -760,7 +760,7 @@ def signature(self):
760
for name, annot in getattr(base, "__annotations__", {}).items():
761
if name.startswith("_"):
762
continue
763
- if (annot in (Value, Signal, Const) or
+ if (annot is Value or annot is Signal or annot is Const or
764
(isinstance(annot, type) and issubclass(annot, ValueCastable)) or
765
isinstance(annot, Signature)):
766
if isinstance(annot, type):
0 commit comments