Type annotation for spacy custom extension #13217
Unanswered
jkgenser
asked this question in
Help: Coding & Implementations
Replies: 1 comment
-
Did you find a good solution. Currently my workaround is to make a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a simple custom extension that creates an interval tree of ents like so:
I set this as a method on doc like so:
What I would like to do is have type inference via my language server and enforce typing via mypy when it's being called, e.g.
I couldn't find good documentation or guidance on how to do this. Any advice/thoughts?
So below would be syntax highlighted instead of white and so the

ent_tree
is inferred as typeIntervalTree
Beta Was this translation helpful? Give feedback.
All reactions