Skip to content

Refactor Block so that output is always a str or None #8

@AlexWaygood

Description

@AlexWaygood

Block.output is incredibly un-type-safe at the moment:

output: Any = None # TODO: Very dynamic; probably untypeable in its current form?

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 python#106519 (comment) for more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions