Skip to content

Extend compatibility back to Python 3.8#7

Merged
eemeli merged 1 commit into
mainfrom
python38
Jun 3, 2024
Merged

Extend compatibility back to Python 3.8#7
eemeli merged 1 commit into
mainfrom
python38

Conversation

@eemeli
Copy link
Copy Markdown
Member

@eemeli eemeli commented Jun 1, 2024

This is needed to be able to use the command for linting Firefox, as mach still supports 3.8.

Changes consist of:

  • Using if..elif..elif..else instead of match (PEP 634)
  • from __future__ import annotations everywhere (PEP 585)
  • Using old type syntax for type aliases and cast targets (PEP 585)
  • Using importlib_resources rather than using the built-in importlib.resources in tests (bpo-39791)
  • The pyproject.toml fixes from 2d6439d

@eemeli eemeli merged commit d8440af into main Jun 3, 2024
@eemeli eemeli deleted the python38 branch June 3, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants