pythonstubs
pythonstubs copied to clipboard
Make type checkers recognize operator methods
This is a PR that converts C# operator methods into those of Python. By doing so, type checkers such as Pyright and Mypy can understand that these classes support specific operators. Currently, operators invoke type errors.
I didn't run .\build-rhino-stubs.ps1
yet because I didn't want to mess up the versioning compatiblity, but I can Run the Powershell script and update the PR if it helps(My PC has Rhino 7.37 and Dotnet 4.8).