- Make base class an
abc.ABC
and specify methods asabstractmethod
orstaticmethod
as much as possible. - Interface function, specify the known/shared arguments as much as possible. Keep the special argument as
**kwargs
.
Created
March 24, 2019 19:33
-
-
Save razhangwei/d53c0de56704b8b1d3149cf904e1bba0 to your computer and use it in GitHub Desktop.
tips practice for defining class or function arguments #Python
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment