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

Added python 3.8 support #191

Merged
merged 2 commits into from
Dec 20, 2023
Merged

Added python 3.8 support #191

merged 2 commits into from
Dec 20, 2023

Conversation

chrisdavi
Copy link
Contributor

@chrisdavi chrisdavi commented Dec 12, 2023

Issue being resolved: #187

Solution description

Python 3.8 uses an older but still supported scheme for type hinting. This updates type hints to work with python 3.8

Changes

All incompatible type hints were changes to work in python 3.8.
str.removeprefix was introduced in python 3.9, so a backports module was created that contained that functionality.

Potential impacts

It's possible I didn't test all paths, so python 3.8 could still be broken in some edge cases.

Steps to test

Running python3 -m pytest -c ./tests/pytest.ini -W ignore::pytest.PytestCollectionWarning --alluredir=./allure-results in both python 3.8 and python 3.10 resulted in no failures.

PR Tasks

  • PR reference added to issue
  • README updated
  • Unit tests added/updated

@bitcoder bitcoder merged commit 0ec72d9 into gurock:main Dec 20, 2023
10 checks passed
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.

trcli fails to run on python 3.8
2 participants