-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComponentInterface
typing wrapper for lib.wiring interfaces
#42
base: master
Are you sure you want to change the base?
Conversation
Improvement from previous version: now separate |
a83193b
to
59935ea
Compare
df30b80
to
81cf873
Compare
amaranth-stubs commit needs to be changed before merge |
Can this handle arbitrary |
Yes, tested here for
and is ShapeLike in type stubs.
I can additionally include some |
Turns out there was an unnecessary early Shape.cast that broken View wrapping trick around Signal, and Layouts were flattened. Fixed now and added to tests. |
This |
No, it needs to be type-equivalent to |
There is a problem with typing of
|
I think this problem is not addressed in current |
This is not true. |
How this is described in stubs? Maybe similar method could be used here? |
See (By the way, there is a slight problem in the stubs here - the overload for
Maybe. But please consider again if |
Another thought: maybe handling everything at type level via |
Redesign of concept from Coreblocks PR kuznia-rdzeni/coreblocks#726.
Class that can be used both for typing and to get amaranth Signature for use in Component constructor.