File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,19 +93,19 @@ def field(
9393 * ,
9494 metadata : t .Mapping [object , object ] = {},
9595 ** kw : object ,
96- ) -> object :
96+ ) -> t . Any :
9797 ...
9898
9999
100- # The return type hint of object is certainly a lie but fits a lot better with
100+ # The return type hint of Any is certainly a lie but fits a lot better with
101101# the normal use of `x: int = desert.field()`. Both dataclasses and attrs
102102# prioritize hinting for this usage as well. Perhaps someday we'll have a
103103# plugin that indicates the actual type.
104104def field (
105105 marshmallow_field : marshmallow .fields .Field ,
106106 metadata : t .Mapping [object , object ] = {},
107107 ** kw : object ,
108- ) -> object :
108+ ) -> t . Any :
109109 """Specify a marshmallow field in the metadata for a ``dataclasses.dataclass``.
110110
111111 .. code-block:: python
@@ -157,7 +157,7 @@ def ib(
157157 ...
158158
159159
160- # The return type hint of object is certainly a lie but fits a lot better with
160+ # The return type hint of Any is certainly a lie but fits a lot better with
161161# the normal use of `x: int = desert.ib()`. Both dataclasses and attrs
162162# prioritize hinting for this usage as well. Perhaps someday we'll have a
163163# plugin that indicates the actual type.
You can’t perform that action at this time.
0 commit comments