You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the thread at the link below, but here's the main comment:
+1 to "let's do it later, not necessary for this PR"
As I understand it, default defines the default argument value while converter applies a function to the argument. Converters allow you to differentiate between the types of the parameters and the types of the attributes
MyClass.__init__(self, x: str|None=None):
self.x=xifxisnotNoneelse"default"# type will be str, no longer optional
I think it comes down to a question of 1) what parameters do we want callers to be able to pass to the constructor and 2) what type do we want the class attributes to be.
See the thread at the link below, but here's the main comment:
Originally posted by @danielkberry in #553 (comment)
The text was updated successfully, but these errors were encountered: