Skip to content
  • Leo P. Singer's avatar
    Remove trivial super() args · 0b429771
    Leo P. Singer authored
    In most cases, in Python 3, it is not necessary to pass any
    arguments to `super()`. The following two class definitions are
    equivalent:
    
    ```python
    class Foo(Bar):
        def bat(self, baz):
            super(Foo, self).bat(baz)
    
    class Foo(Bar):
        def bat(self, baz):
            super().bat(baz)
    ```
    
    It is still necessary to pass explicit arguments to `super()` if
    it is used outside of a class definition.
    0b429771