2 ms·
> How will you typehint that? For that specific contrived scenario (mongoengine, which I've never used, apparently uses .aggregate for the latter rather than o
by dragonwriter 6y ago
> How will you typehint that?
For that specific contrived scenario (mongoengine, which I've never used, apparently uses .aggregate for the latter rather than overriding .get) with two stub @overloads of [...].get for typehinting, one covering what it takes and gives in the aggregate case of interest and one for what it takes and gives in the simple case.