Skip to content

Commit cf7d037

Browse files
committed
fix type annotation for exports()
1 parent 0bf5877 commit cf7d037

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: src/idom/web/module.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -252,25 +252,25 @@ class WebModule:
252252
def export(
253253
web_module: WebModule,
254254
export_names: str,
255-
fallback: Optional[Any],
256-
allow_children: bool,
255+
fallback: Optional[Any] = ...,
256+
allow_children: bool = ...,
257257
) -> _VdomDictConstructor:
258258
...
259259

260260

261261
@overload
262262
def export(
263263
web_module: WebModule,
264-
export_names: Union[List[str], Tuple[str]],
265-
fallback: Optional[Any],
266-
allow_children: bool,
264+
export_names: Union[List[str], Tuple[str, ...]],
265+
fallback: Optional[Any] = ...,
266+
allow_children: bool = ...,
267267
) -> List[_VdomDictConstructor]:
268268
...
269269

270270

271271
def export(
272272
web_module: WebModule,
273-
export_names: Union[str, List[str], Tuple[str]],
273+
export_names: Union[str, List[str], Tuple[str, ...]],
274274
fallback: Optional[Any] = None,
275275
allow_children: bool = True,
276276
) -> Union[_VdomDictConstructor, List[_VdomDictConstructor]]:

0 commit comments

Comments
 (0)