@@ -66,6 +66,14 @@ def straight_shorted(
6666 Note:
6767 The port ``o2`` is internally shorted and should not be used.
6868 It seems to be a Sax limitation that we need to define at least two ports.
69+
70+ Args:
71+ **kwargs
72+ Keyword arguments forwarded to :func:`qpdk.models.straight`.
73+ See :class:`StraightModelKwargs` for the supported parameters.
74+
75+ Returns:
76+ sax.SType: S-parameters dictionary
6977 """
7078 circuit , _ = sax .circuit (
7179 netlist = {
@@ -97,23 +105,59 @@ def bend_circular(
97105 * args : Any ,
98106 ** kwargs : Unpack [StraightModelKwargs ],
99107) -> sax .SType :
100- """S-parameter model for a circular bend, wrapped to to :func:`~straight`."""
108+ """S-parameter model for a circular bend, wrapped to to :func:`~straight`.
109+
110+ Args:
111+ *args:
112+ Positional arguments forwarded directly to :func:`straight`.
113+
114+ **kwargs:
115+ Keyword arguments forwarded directly to :func:`straight`.
116+ See :class:`StraightModelKwargs` for the supported parameters.
117+
118+ Returns:
119+ sax.SType: S-parameters dictionary
120+ """
101121 return straight (* args , ** kwargs ) # pyrefly: ignore[bad-keyword-argument]
102122
103123
104124def bend_euler (
105125 * args : Any ,
106126 ** kwargs : Unpack [StraightModelKwargs ],
107127) -> sax .SType :
108- """S-parameter model for an Euler bend, wrapped to to :func:`~straight`."""
128+ """S-parameter model for an Euler bend, wrapped to to :func:`~straight`.
129+
130+ Args:
131+ *args:
132+ Positional arguments forwarded directly to :func:`straight`.
133+
134+ **kwargs:
135+ Keyword arguments forwarded directly to :func:`straight`.
136+ See :class:`StraightModelKwargs` for the supported parameters.
137+
138+ Returns:
139+ sax.SType: S-parameters dictionary
140+ """
109141 return straight (* args , ** kwargs ) # pyrefly: ignore[bad-keyword-argument]
110142
111143
112144def bend_s (
113145 * args : Any ,
114146 ** kwargs : Unpack [StraightModelKwargs ],
115147) -> sax .SType :
116- """S-parameter model for an S-bend, wrapped to to :func:`~straight`."""
148+ """S-parameter model for an S-bend, wrapped to to :func:`~straight`.
149+
150+ Args:
151+ *args:
152+ Positional arguments forwarded directly to :func:`straight`.
153+
154+ **kwargs:
155+ Keyword arguments forwarded directly to :func:`straight`.
156+ See :class:`StraightModelKwargs` for the supported parameters.
157+
158+ Returns:
159+ sax.SType: S-parameters dictionary
160+ """
117161 return straight (* args , ** kwargs ) # pyrefly: ignore[bad-keyword-argument]
118162
119163
@@ -135,6 +179,9 @@ def taper_cross_section(
135179 cross_section_1: Cross-section for the start of the taper.
136180 cross_section_2: Cross-section for the end of the taper.
137181 n_points: Number of segments to divide the taper into for simulation.
182+
183+ Returns:
184+ sax.SType: S-parameters dictionary
138185 """
139186 # Ensure n_points is a concrete Python int
140187
@@ -212,7 +259,19 @@ def rectangle(
212259 * args : Any ,
213260 ** kwargs : Unpack [StraightModelKwargs ],
214261) -> sax .SType :
215- """S-parameter model for a rectangular section, wrapped to to :func:`~straight`."""
262+ """S-parameter model for a rectangular section, wrapped to to :func:`~straight`.
263+
264+ Args:
265+ *args:
266+ Positional arguments forwarded directly to :func:`straight`.
267+
268+ **kwargs:
269+ Keyword arguments forwarded directly to :func:`straight`.
270+ See :class:`StraightModelKwargs` for the supported parameters.
271+
272+ Returns:
273+ sax.SType: S-parameters dictionary
274+ """
216275 return straight (* args , ** kwargs ) # pyrefly: ignore[bad-keyword-argument]
217276
218277
0 commit comments