@@ -352,9 +352,9 @@ class Meta(Schema.Opts):
352352 .. versionremoved:: 4.0.0 Remove ``ordered``.
353353 """
354354
355- fields : typing .ClassVar [tuple [Field ] | list [Field ]]
355+ fields : typing .ClassVar [tuple [str , ... ] | list [str ]]
356356 """Fields to include in the (de)serialized result"""
357- additional : typing .ClassVar [tuple [Field ] | list [Field ]]
357+ additional : typing .ClassVar [tuple [str , ... ] | list [str ]]
358358 """Fields to include in addition to the explicitly declared fields.
359359 `additional <marshmallow.Schema.Meta.additional>` and `fields <marshmallow.Schema.Meta.fields>`
360360 are mutually-exclusive options.
@@ -364,7 +364,7 @@ class Meta(Schema.Opts):
364364 usually better to define fields as class variables, but you may need to
365365 use this option, e.g., if your fields are Python keywords.
366366 """
367- exclude : typing .ClassVar [tuple [Field ] | list [Field ]]
367+ exclude : typing .ClassVar [tuple [str , ... ] | list [str ]]
368368 """Fields to exclude in the serialized result.
369369 Nested fields can be represented with dot delimiters.
370370 """
@@ -376,15 +376,18 @@ class Meta(Schema.Opts):
376376 """Default format for `DateTime <marshmallow.fields.DateTime>` fields."""
377377 timeformat : typing .ClassVar [str ]
378378 """Default format for `Time <marshmallow.fields.Time>` fields."""
379- render_module : typing .ClassVar [types .RenderModule ]
379+
380+ # FIXME: Use a more constrained type here.
381+ # ClassVar[RenderModule] doesn't work.
382+ render_module : typing .Any
380383 """ Module to use for `loads <marshmallow.Schema.loads>` and `dumps <marshmallow.Schema.dumps>`.
381384 Defaults to `json` from the standard library.
382385 """
383386 index_errors : typing .ClassVar [bool ]
384387 """If `True`, errors dictionaries will include the index of invalid items in a collection."""
385- load_only : typing .ClassVar [tuple [Field ] | list [Field ]]
388+ load_only : typing .ClassVar [tuple [str , ... ] | list [str ]]
386389 """Fields to exclude from serialized results"""
387- dump_only : typing .ClassVar [tuple [Field ] | list [Field ]]
390+ dump_only : typing .ClassVar [tuple [str , ... ] | list [str ]]
388391 """Fields to exclude from serialized results"""
389392 unknown : typing .ClassVar [types .UnknownOption ]
390393 """Whether to exclude, include, or raise an error for unknown fields in the data.
0 commit comments