ahrefs / atd

Static types for JSON APIs
Other
316 stars 52 forks source link

atdpy: evaluate default field values for each object creation #341

Closed mjambon closed 1 year ago

mjambon commented 1 year ago

instead of sharing the same physical value across all objects of the same class.

As a result, list fields defaulting to the empty list are also optional when calling the class constructor.

Fixes https://github.com/ahrefs/atd/issues/339

PR checklist