Solid Principles, Python.
now has to check what type of object e is. In order to check for the type, the switch must know all possible employee types, and so it violates the open-closed principle. And since super type employee cannot be replaced by subtype manager without checking the type of e, the Liskov substitution