In [1]: class Test: ...: def test(): ...: pass ...: In [2]: type(Test.test) Out[2]: function In [3]: type(Test().test) Out[3]: method