ROOT Version: 6.32.11
Python Version: 3.9.14
Platform: AlmaLinux 9 (el9_amd64_gcc12)
Compiler: g++ (GCC) 12.3.1 20230527
Hi all!
I’ve been using pyROOT for some time now and I was too accustomed to the Python type hinting as to not wanting it to be available for ROOT, since I found myself checking the docs every now and then because I would forget the name of the class methods.
I found a previous issue that touched on this, but the conclusion was that it was not possible, since pyROOT doesn’t really exist, and it’s just Python calling on C++.
However, doing a bit of research, I found out about .pyi
files, which only have the implementation of the classes and methods, and I’ve built a small typings package for ROOT with the classes and functions I needed. It is certainly incomplete, and most likely buggy, but I wanted to leave the GitHub repo here in case someone wants to use it or document it further (:
I’ve personally used it with VSCode, so the instructions are only available for that. But I guess it could be used for any language analysis.
Also, I wanted to ask if there will be a central, official typing package in the future from the ROOT devs?
Thanks to all for reading, have a nice one! (: