Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old 3.8 code #163

Open
gordonwatts opened this issue Feb 4, 2025 · 0 comments · May be fixed by #159
Open

Remove old 3.8 code #163

gordonwatts opened this issue Feb 4, 2025 · 0 comments · May be fixed by #159
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@gordonwatts
Copy link
Member

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
@gordonwatts gordonwatts added bug Something isn't working good first issue Good for newcomers labels Feb 4, 2025
@gordonwatts gordonwatts linked a pull request Feb 4, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant