Open AlexWaygood opened 1 year ago
Block.output is incredibly un-type-safe at the moment:
Block.output
https://github.com/Argument-Clinic/cpython/blob/49f238e78c36532bcbca7f9cd172703eb4df319b/Tools/clinic/clinic.py#L1710
Most of the time, it's a str, but whenever we're inside one of the methods called by DSLParser.parse(), it's a list of strings. See my essay in https://github.com/python/cpython/pull/106519#issue-1793736606 for more.
str
DSLParser.parse()
Block.output
is incredibly un-type-safe at the moment:https://github.com/Argument-Clinic/cpython/blob/49f238e78c36532bcbca7f9cd172703eb4df319b/Tools/clinic/clinic.py#L1710
Most of the time, it's a
str
, but whenever we're inside one of the methods called byDSLParser.parse()
, it's a list of strings. See my essay in https://github.com/python/cpython/pull/106519#issue-1793736606 for more.