Skip to content

Remove old 3.8 code #163

Closed
Closed
@gordonwatts

Description

@gordonwatts

This code can probably now be removed:

                # This if statement can be removed when we no longer support 3.8.
                if isinstance(slice, ast.Index):
                    slice = slice.value  # type: ignore
                if not isinstance(slice, ast.Constant):
                    raise ValueError(
                        f"Slices must be indexable constants only - {ast.dump(slice)} is not "
                        "valid."
                    )
                index = slice.value

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions