File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 848
848
'index' ,
849
849
]
850
850
851
+ object_expected_methods = [
852
+ '__repr__' ,
853
+ '__hash__' ,
854
+ '__str__' ,
855
+ '__getattribute__' ,
856
+ '__setattr__' ,
857
+ '__delattr__' ,
858
+ '__lt__' ,
859
+ '__le__' ,
860
+ '__eq__' ,
861
+ '__ne__' ,
862
+ '__gt__' ,
863
+ '__ge__' ,
864
+ '__init__' ,
865
+ '__new__' ,
866
+ '__reduce_ex__' ,
867
+ '__reduce__' ,
868
+ '__subclasshook__' ,
869
+ '__init_subclass__' ,
870
+ '__format__' ,
871
+ '__sizeof__' ,
872
+ '__dir__' ,
873
+ '__class__' ,
874
+ '__doc__'
875
+ ]
876
+
851
877
not_implemented = []
852
878
853
879
for method in bool_expected_methods :
957
983
except NameError :
958
984
not_implemented .append (("tuple" , method ))
959
985
986
+ for method in object_expected_methods :
987
+ try :
988
+ if not hasattr (bool , method ):
989
+ not_implemented .append (("object" , method ))
990
+ except NameError :
991
+ not_implemented .append (("object" , method ))
992
+
960
993
for r in not_implemented :
961
994
print (r [0 ], "." , r [1 ])
962
995
else :
You can’t perform that action at this time.
0 commit comments