3 ms·
Can anyone surmise if the flask type hinting is vulnerable to annotations issue that pydantic/fastapi recently faced? https://github.com/samuelcolvin/pydantic/
by dan_quixote 5y ago
Can anyone surmise if the flask type hinting is vulnerable to annotations issue that pydantic/fastapi recently faced?
https://github.com/samuelcolvin/pydantic/issues/2678 https://github.com/samuelcolvin/pydantic/issues/2678
- detaro 5y agoPydantic evaluates annotations from other code. Flask just got annotations added to its API. very different things.
- icegreentea2 5y agoI don't think so. From what I can see, Flask isn't using type annotations to drive any runtime behaviors.
- milliams 5y agoI don't think so. Pydantic and co. were using the annotation system in a quite in-depth way to generate their special classes. Flask just seems to be using type annotations like any other Python library would.