TypeError: super(type, obj): obj must be an instance or subtype of typeclass UserNotificationdefault=timezone.now)
return self.Name
ordering = ["-date"]
这是我的vie
我尝试了为编写的pynytimes包装包,并使用了请求,得到了以下错误。提前谢谢你!20100101&end_date=20100201&q=Apple%20Inc&api-key=myNYTapiKeyXXXX'使用Python包的尝试NYTAPInyt = NYTAPI(nytimes_apikey)
t
我正在制作一个定制词典,一个简单的翻译数据库。这个类有一个从文件中读取和挂载对象的类方法。我总结了一些概念,即使用子类初始化我的超类以便随时可以使用,空,然后使用我的方法用kwargs填充它,这是一个自定义类方法构造函数,可以从文件中提供这个kwargs。class TransDatabase(dict): super().__init__(kwargs) # return the custom class cons
但是,由于这个实现使用了一些不推荐的函数,而且我希望将一些常见的功能合并到一个包中,所以我想实现我自己的版本。但是,当我试图在执行之前将jupyter魔术代码转换为python代码时,我会得到这个奇怪的错误。)(Pdb) super(IPythonInputSplitter, self)
*** TypeError: super(type, obj): obj must be an instanceor