dictation-toolbox / natlink

Natlink provides the interface between Dragon and python
Other
25 stars 17 forks source link

_natlink_core.pyi #125

Open dougransom opened 2 years ago

dougransom commented 2 years ago

If there is a file, _natlink_core.pyi, in natlink.

I'm not sure if its purpose but I suspect it's for type hints? Probably it should be installed alongside the .pyd files and I'm not sure what the exact name should be.

i also wonder if natlink_core.pyd should be _natlink.pyd since core seems to be the macro system.

dougransom commented 2 years ago

I willl address thiis, probably for not this month's release but a future one.

quintijn commented 2 years ago

Yes, renaming to _natlink.pyd seems good to me.

The .pyi file seems to do its work with pylint. Without it functions in the pyd cannot be found by pylint. Not sure about this though. Cannot check at the moment though

quintijn commented 3 months ago

I still would like to know what the purpose of the .pyi file is. Right now pylint cannot resolve references to functions of the natlink.pyd file. The .pyi file probably has something to do with it.

drmfinlay commented 3 months ago

This type of file is for type hints. Pylint doesn't seem to use them intuitively. The extension-pkg-allow-list option should force pylint to import the .pyd file instead, if it can.