GithubHelp home page GithubHelp logo

Support Python 3.7 about sanic-swagger HOT 4 OPEN

abatilo avatar abatilo commented on July 29, 2024 4
Support Python 3.7

from sanic-swagger.

Comments (4)

hairychris avatar hairychris commented on July 29, 2024

This is the PEP that gets rid of GenericMeta: https://www.python.org/dev/peps/pep-0560/

from sanic-swagger.

hairychris avatar hairychris commented on July 29, 2024

These "fixes" pass all the tests but I really don't think it's correct. Would you mind taking a look when you get the chance? https://github.com/hairychris/sanic-swagger/tree/patch-2

from sanic-swagger.

abatilo avatar abatilo commented on July 29, 2024

I would agree that it doesn't feel like the correct approach, but in full transparency, I'm not really sure :/

I'm not sure that I understand what happened with GenericMeta when we moved to Python 3.7

from sanic-swagger.

c-goosen avatar c-goosen commented on July 29, 2024

I am also looking at this. We can add a dependency to keep GenericMeta? https://pypi.org/project/typing/

We can just create a class for GenericMeta?

First of all the fix @hairychris you could import GenericMeta as generic.

from typing import Generic as GenericMeta

from sanic-swagger.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.