Spacy: Time for type stubs?

Created on 18 Apr 2020  路  1Comment  路  Source: explosion/spaCy

Feature description

Implement type stubs as as in #4337 (locked). In this issue you say "Once we no longer support 2.7 and 3.5, we'll look at type hints.". #4828 drops support for python 2.7 and 3.5 (and makes some code improvement that this allows).

Could the feature be a custom component or spaCy plugin?

Not really. The type stubs needs to be kept in sync with the code.

enhancement

Most helpful comment

Happy to report that the upcoming spaCy v3 (which drops support for Python 2) will include type hints - you can have a sneak peak on the develop branch ;-) I'll close this issue as this is implemented, just not released yet - which is only a matter of time ;-)

>All comments

Happy to report that the upcoming spaCy v3 (which drops support for Python 2) will include type hints - you can have a sneak peak on the develop branch ;-) I'll close this issue as this is implemented, just not released yet - which is only a matter of time ;-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nadachaabani1 picture nadachaabani1  路  3Comments

smartinsightsfromdata picture smartinsightsfromdata  路  3Comments

besirkurtulmus picture besirkurtulmus  路  3Comments

enerrio picture enerrio  路  3Comments

ines picture ines  路  3Comments