Skip to content

Commit 97f1bc4

Browse files
committed
updating overloads (#13)
1 parent 11c2e83 commit 97f1bc4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bloqade/geometry/dialects/grid/_interface.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ def get_ypos(grid: Grid[typing.Any, Ny]) -> ilist.IList[float, Ny]:
113113
...
114114

115115

116+
@typing.overload
117+
def sub_grid(
118+
grid: Grid, x_indices: ilist.IList[int, Nx], y_indices: ilist.IList[int, Ny]
119+
) -> Grid[Nx, Ny]: ...
116120
@typing.overload
117121
def sub_grid(
118122
grid: Grid, x_indices: ilist.IList[int, Nx], y_indices: list[int]

0 commit comments

Comments
 (0)