-
Notifications
You must be signed in to change notification settings - Fork 11
Use type-hints for all function arguments & return values #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
oh, interesting! i thought (PEP 484 -- Type Hints)[https://www.python.org/dev/peps/pep-0484/) was all we needed |
Same syntax! Let's do it. |
They work in concert :D and yay yes this was on my table for "eventually", very happy to see this being worked on 👍 |
how about formally extending |
ba62e1f done |
💜 |
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. 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 |
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 |
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. |
a first big slew, or rather, the ground-work! has now been laid with the merging of #54. You too can help out with this issue! take a look at |
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
This patchset addresses #39. we've now added the entire (default) config of flake8-mypy. The following options deviate from their default (which gets us a step closer to mypy --strct) - ignore_missing_imports=False - follow_imports=True - cache_dir=.mypy_cache - disallow_untyped_calls=True - warn_return_any=True We've also toggled these two: - warn_redundant_casts=True - warn_unused_ignores=True Finally, we check for - check_untyped_defs=True For the full --strict set, we'd also need: - disallow_untyped_defs=True But that, we'll need better typedefs.
Strong typing is established in the entire library. |
Since we're already using Python 3.6, we should consider also specifying all our input parameters with input & return types.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: