autoreload and package causing TypeError: super(type, obj): obj must be an instance or subtype of type

后端 未结 2 1977
遥遥无期
遥遥无期 2021-02-07 06:34

I have python code spanning several files which I packaged up for convenience, ending up with the following 3 files under my_package directory:

__init__.py
         


        
2条回答
  •  广开言路
    2021-02-07 07:29

    In Python 3, using the new super().__init__() instead of super(Derived, self).__init__() solved the problem for me

提交回复
热议问题