-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add type hints to Python function signatures #58
Comments
I'm not used to Python and have never worked with |
IIUC, these are both true for this. |
I am a huge fan of type hints in Python but they break compatibility with Python 2. If we a green light to drop legacy Python then let's go for it. |
Personally, I don't see why we should let Python 2 hold us back in 2020? |
As long as Node.js and node-gyp support Python 2 in their main development branches, I am against removing support here. |
Unfortunately, this is not a choice that one person can make. How do we get the Node.js Technical Steering Commitee to agree to drop support for legacy Python which died 200 days ago. |
You don't necessarily need the whole TSC to agree on it. The process is to open a PR dropping Python 2. If we cannot reach consensus (i.e. some collaborator(s) disagree), then the TSC will have to make a decision. |
@targos what does the PR need to do? Since the tooling is already Python 3 compatible, I suppose we're looking at a doc-only PR here. |
Almost doc-only, yes. There's also at least one place where we validate the python version (the |
|
|
Add type information to the codebase. Thoughts? @cclauss @targos.
Ref: https://docs.python.org/3/library/typing.html
The text was updated successfully, but these errors were encountered: