wikit-ai / olaf

6 stars 1 forks source link

Clean up class init methods' default values #24

Closed ba-talibe closed 6 months ago

ba-talibe commented 6 months ago

Clean up the class init methods. Their parameters should not contain any default values with an instantiated class. The issue is that Python executes the files when importing, which takes some time. When the default value should be a class instantiation, we should set it as None in the signature and deal with the default value within the init method.