Stephen Rosen

Results 104 comments of Stephen Rosen

> Not field-level, a custom field to wrap the abstract class's schema and encapsulate the type checking logic. Ah, sorry for misunderstanding. Your example is a good one; it's what...

I think the only way to solve this might be a mypy plugin. Fields defined as class attrs are handled differently from instance attrs by the `SchemaMeta` metaclass. Several other...

Yep, I agree that it's a kind of polymorphism! It can get tricky to model with mutex, since the number of variants is equal to the product of sizes of...

I started on a patch to do the `list()` invocation, but I'm hesitating to submit it. The following change passes all tests: ```diff diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py index ff119a4..449a45c 100644...

> Unfortunately, it is not currently supported in Marshmallow > ... > Because of that, we can't ban `Union` in our linter. Could you clarify what you mean by this?...

Hi, thanks for the detail. Are you sure that `marshmallow` is responsible? This sounds like a `dataclasses_json` issue. `marshmallow` itself doesn't parse type annotations at all. If something is annotated...

Yes! In particular, I like [the idea you proposed there](https://github.com/marshmallow-code/marshmallow/pull/600#issuecomment-447682935) of using hook methods with known names instead of decorators. But I don't think it's easy to handle `many, pass_many,...

Looking at this issue from the perspective of webargs, I see two (related) issues with #1575. I think I have a good idea of how to resolve them, but want...

@sloria, could I push for your (or another marshmallow maintainer's) feedback on this approach? The implementation aside, I'm not sure if this is the way to solve this problem.

The factory pattern or a custom base schema probably covers all usage. I think the 99% case for users wanting this is this simple: a user wants to set `EXCLUDE`...