VianneyMI / monggregate

Library to make MongoDB aggregation framework and pipelines easy to use in python.
https://vianneymi.github.io/monggregate/
MIT License
22 stars 3 forks source link

Use Annotated to precise to which type an expression must resolve to #121

Open VianneyMI opened 6 months ago

VianneyMI commented 6 months ago

Ex:


class Limit(Stage):
   value: Expression

would become


class Limit(Stage):
   value: Annotated[Expression, int]