i2mint / i2

Python Mint creation, manipulation, and use
Apache License 2.0
2 stars 1 forks source link

fix: Make self be position only in Sig methods having variadic keywords #58

Closed thorwhalen closed 1 year ago

thorwhalen commented 1 year ago

What happens if you try to change the name self to another name, using Sig.ch_names?

I'll tell you what: You get:

TypeError: Sig.ch_names() got multiple values for argument 'self'

Ah, of course. And this will be the case for all of the methods that contain variadic keywords!

A solution: Just make the first self argument of the methods be position only.