Skip to content

Commit c22927e

Browse files
author
Joel Collins
committed
Allow Fields in OptionalSchema type
1 parent 8c159dd commit c22927e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labthings/views/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
__all__ = ["MethodView", "View", "ActionView", "PropertyView", "op", "builder"]
2020

2121
# Type alias for convenience
22-
OptionalSchema = Optional[Union[Schema, Dict[str, Field]]]
22+
OptionalSchema = Optional[Union[Schema, Field, Dict[str, Field]]]
2323

2424

2525
class View(MethodView):

0 commit comments

Comments
 (0)