Giter Site home page Giter Site logo

Comments (12)

araujobsd avatar araujobsd commented on July 28, 2024 1

The first goal of mypy was to be an alternative to Python language, something like pypy but with different purpose. The main design wasn't to be a test tool! ;)

I would discourage you to use it, it will add more complexity to the project as well as additional confusion.
Also, I can't see a real benefit of it, and plus it is an experimental project.

Stick with pure python is the right thing to do, force contributors to implement something that is not standard in the market is just a big "no go".

I would revert this commit too: ba62e1f

from libioc.

igalic avatar igalic commented on July 28, 2024 1

a first big slew, or rather, the ground-work! has now been laid with the merging of #54.
Thanks to everyone who's helped out here — in particular, @gronke, who did a lot of debugging with me.

You too can help out with this issue! take a look at mypy --strict libiocage/ and choosing, and following a thread. start adding types, validate with mypy libiocage until it comes back clean.

from libioc.

gronke avatar gronke commented on July 28, 2024

PEP 3107 -- Function Annotations

from libioc.

igalic avatar igalic commented on July 28, 2024

oh, interesting! i thought (PEP 484 -- Type Hints)[https://www.python.org/dev/peps/pep-0484/) was all we needed

from libioc.

gronke avatar gronke commented on July 28, 2024

Same syntax! Let's do it.

from libioc.

skarekrow avatar skarekrow commented on July 28, 2024

They work in concert :D and yay yes this was on my table for "eventually", very happy to see this being worked on 👍

from libioc.

igalic avatar igalic commented on July 28, 2024

how about formally extending CONTRIBUTING.md with #42, to say that no functions are to be added without a type signature?

from libioc.

skarekrow avatar skarekrow commented on July 28, 2024

ba62e1f done

from libioc.

igalic avatar igalic commented on July 28, 2024

💜

from libioc.

igalic avatar igalic commented on July 28, 2024

i thought that part of the reason for choosing python 3.6 was so that the project could make full use of the new language features, including types. mypy is a crutch here, and i would rather revert adding that, than adding types

from libioc.

araujobsd avatar araujobsd commented on July 28, 2024

You can do full use of Python 3.6; but, include an external dependency that is in experimental stage, doesn't sounds good for several reasons: maintainability, interdependence, stability and plus I can't see what improvements it can bring to the project, but it only adds more complexity.

For me it is not clear what problem you are trying to solve here using mypy. So, I'm totally against to include mypy in this project, if there is not a technical debt or a serious problem to be solved.

from libioc.

gronke avatar gronke commented on July 28, 2024

Strong typing is established in the entire library.

from libioc.

Related Issues (20)

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.