Comments (4)
Seems like a nice way to type components based on other components.
I wonder would it be easy to generate the TypedDict from a component function automatically, just by looking at which keyword arguments have defaults available and applying NotRequired
to those.
from gdsfactory.
One caveat through: Unpack seems to only be available in python 3.12+ for kwargs PEP692
from gdsfactory.
It worked for me on 3.11
from gdsfactory.
I think this is a better solution
from gdsfactory.
Related Issues (20)
- .to_yaml() misses some layer properties defined in Klayout HOT 3
- bend port issue
- General GDS-to-code line mapping with text label during generation HOT 4
- Use exclusively loguru for logging output but `warnings.warn` internally
- Obey `stacklevel` in `warnings.warn` for loguru output
- Propagate `warnings.warn` category to loguru output
- Don't override warnings.showwarning and provide `gf.config.warn` or similar
- Consistent language for position, location and center HOT 1
- gf.route.get_route() does not create a "start straight length" HOT 2
- add models to PDK
- capture cell movememts from layout into
- Improvements for big layouts
- Component info/metadata HOT 3
- PN Modulator
- Issue on page /api_routing.html all_angle_ routing HOT 2
- CrossSection 'sections' Type-Hinting Issue HOT 1
- The gf.ponents.taper function has no effect on cross_section when it has a bbox parameter. HOT 1
- PDK Component Bugged: coupler_straight_asymmetric HOT 1
- port positions wrong for `components.array` with `centered = True` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdsfactory.