Comments (12)
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.
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.
PEP 3107 -- Function Annotations
from libioc.
oh, interesting! i thought (PEP 484 -- Type Hints)[https://www.python.org/dev/peps/pep-0484/) was all we needed
from libioc.
Same syntax! Let's do it.
from libioc.
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.
how about formally extending CONTRIBUTING.md
with #42, to say that no functions are to be added without a type signature?
from libioc.
ba62e1f done
from libioc.
💜
from libioc.
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.
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.
Strong typing is established in the entire library.
from libioc.
Related Issues (20)
- Exporting ZFS basejails includes basejail datasets
- provisioning does not cleanup mounted resources HOT 1
- ioc pkg no longer works HOT 2
- `ioc destroy -f` should call `ioc stop -f` HOT 3
- DHCP no longer works HOT 3
- Disable sendmail, for real please
- Symlink race condition
- Broken create Jail with net address already available on host HOT 3
- FreeBSD package names can contain dots
- Exporting jails fails with AbsolutePath error
- Unable to build under 12.1-p2 (python3.7)
- ZFS root dataset is not mounted HOT 1
- METADATA is incomplete
- Missing files in sdist
- how to (remember to) reload /etc/pf.conf when (re)starting a jail HOT 3
- fdescfs is no longer necessary HOT 1
- libioc's pkg feature can conflict badly with its provisioning feature HOT 1
- Network's __create_new_epair_interface function parameter nic_suffix_b is ignored
- Export without fstab fails
- EOL Warnings fail download on FreeBSD 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libioc.