Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There were a lot of errors in the generated type stub file due to invalid assignments from the namespace generation and type errors using the
self.org
forward approach. The stub file now uses enums to deal with the namespaces and only sets the docstring and type information in the functions.The new code now also tries to handle overloads by merging functions since overloads with the same name are not allowed, e.g.
turned into
This is not always a perfect solution depending on the overloads. From what I have seen it is basically always better than having just one because the others are ignored though.
Attached is the generated stub file in case you want to compare it to the current one. Just rename it to
.pyi
since github does not allow arbitrary file extensions.triton.txt