Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Bug report
It is now defined as:
cpython/Tools/cases_generator/analyzer.py
Line 185 in46d7c11
replicated=0 |
And used as:
cpython/Tools/cases_generator/analyzer.py
Lines 879 to 884 in46d7c11
forannoinop.annotations: | |
ifanno.startswith("replicate"): | |
result.replicated=int(anno[10:-1]) | |
break | |
else: | |
returnresult |
But, right nowreplicated
is a class-level variable of a dataclass, because it does not have an annotation, see:
>>>fromdataclassesimportdataclass>>>@dataclass...classUop:...replicated=0...>>>Uop(replicated=1)Traceback (mostrecentcalllast):File"<python-input-2>",line1,in<module>Uop(replicated=1)~~~^^^^^^^^^^^^^^TypeError:Uop.__init__()gotanunexpectedkeywordargument'replicated'
I have a PR with the fix.
Refs626c414