We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b9196 commit eda93e1Copy full SHA for eda93e1
extra_tests/not_impl_gen.py
@@ -95,15 +95,11 @@ def gen_methods():
95
methods = {}
96
for typ_code in objects + iters:
97
typ = eval(typ_code)
98
- methods[typ.__name__] = (
99
- typ_code,
100
- extra_info(typ),
101
- [
102
- (attr, extra_info(attr))
103
- for attr in dir(typ)
104
- if attr_is_not_inherited(typ, attr)
105
- ],
106
- )
+ attrs = []
+ for attr in dir(typ):
+ if attr_is_not_inherited(typ, attr):
+ attrs.append((attr, extra_info(getattr(typ, attr))))
+ methods[typ.__name__] = (typ_code, extra_info(typ), attrs)
107
108
output = "expected_methods = {\n"
109
for name, (typ_code, extra, attrs) in methods.items():
0 commit comments