Closed thorwhalen closed 1 year ago
What happens if you try to change the name self to another name, using Sig.ch_names?
self
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.
What happens if you try to change the name
self
to another name, usingSig.ch_names
?I'll tell you what: You get:
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.