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

Fixes #8. Use Py3.9 features and type hints #9

Closed
wants to merge 2 commits into from

Conversation

RyanMullins
Copy link
Member

@RyanMullins RyanMullins commented Nov 11, 2024

Makes the code compatible with Python 3.9.

  • Converts | None type hints back to Optional (see PEP 604)
  • Converts X | Y type hints to Union (see PEP 604)
  • Removes use of match..case (see PEP 634, 635, 636)
  • Uses the concrete import from synthid_text instead of the relative import from .
  • Renames a helper function in the logits processor test to avoid it being picked up as a test case by PyTest

@RyanMullins RyanMullins linked an issue Nov 11, 2024 that may be closed by this pull request
@RyanMullins
Copy link
Member Author

Fixing this in #11 so that we get a CI run in with every PR, too.

@RyanMullins RyanMullins deleted the 8-py39-compatibility branch November 12, 2024 15:21
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.

Python version
1 participant