+2 votes
in Programming Languages by (14.6k points)
How to declare a minimal class in Python that will do nothing?

1 Answer

0 votes
by (25.5k points)

pass statement can be used for creating minimal classes:

class AnEmptyClass:
    pass

...