I think it's best to move it outside of the class here. See discussion in https://stackoverflow.com/questions/735975/static-methods-in-python.
> Finally, use staticmethod() sparingly! There are very few situations where > static-methods are necessary in Python, and I've seen them used many times > where a separate "top-level" function would have been clearer. > You don't really need to use the staticmethod decorator. Just declaring a > method (that doesn't expect the self parameter) and call it from the class. > The decorator is only there in case you want to be able to call it from an > instance as well (which was not what you wanted to do) [ Full content available at: https://github.com/apache/incubator-airflow/pull/3570 ] This message was relayed via gitbox.apache.org for [email protected]
