jmcarp / flask-apispec

MIT License
655 stars 156 forks source link

MethodViewType removed in Flask 2.2 #237

Closed woutdenolf closed 2 years ago

woutdenolf commented 2 years ago

See: https://github.com/pallets/flask/commit/45174bf9a1e96e51ce589c7aa2c151249d1fdf11

In Flask < 2.2

class MethodView(View, metaclass=MethodViewType):

In Flask >= 2.2

class MethodView(View):
    def __init_subclass__(cls, **kwargs: t.Any) -> None:
MarkShawn2020 commented 2 years ago

See: pallets/flask@45174bf

In Flask < 2.2

class MethodView(View, metaclass=MethodViewType):

In Flask >= 2.2

class MethodView(View):
    def __init_subclass__(cls, **kwargs: t.Any) -> None:

Thanks, you do save me a lot of time!

ischaojie commented 2 years ago

Same issue as.

derlikh-smart commented 2 years ago

related to https://github.com/pallets/flask/pull/4624