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(
93
93
* ,
94
94
metadata : t .Mapping [object , object ] = {},
95
95
** kw : object ,
96
- ) -> object :
96
+ ) -> t . Any :
97
97
...
98
98
99
99
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
101
101
# the normal use of `x: int = desert.field()`. Both dataclasses and attrs
102
102
# prioritize hinting for this usage as well. Perhaps someday we'll have a
103
103
# plugin that indicates the actual type.
104
104
def field (
105
105
marshmallow_field : marshmallow .fields .Field ,
106
106
metadata : t .Mapping [object , object ] = {},
107
107
** kw : object ,
108
- ) -> object :
108
+ ) -> t . Any :
109
109
"""Specify a marshmallow field in the metadata for a ``dataclasses.dataclass``.
110
110
111
111
.. code-block:: python
@@ -157,7 +157,7 @@ def ib(
157
157
...
158
158
159
159
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
161
161
# the normal use of `x: int = desert.ib()`. Both dataclasses and attrs
162
162
# prioritize hinting for this usage as well. Perhaps someday we'll have a
163
163
# plugin that indicates the actual type.
You can’t perform that action at this time.
0 commit comments