Skip to content

Commit 603f02d

Browse files
authored
Update __init__.py
1 parent b0580d0 commit 603f02d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/desert/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.
104104
def 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.

0 commit comments

Comments
 (0)