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

Revert "Add types to file generated by __test__.py" #435

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

mattem
Copy link
Collaborator

@mattem mattem commented Nov 13, 2024

Reverts #428

Revert as it's causing a failure on CI for older versions of Python.

@mattem mattem merged commit 9a9e4a2 into main Nov 13, 2024
11 checks passed
@mattem mattem deleted the revert-428-patch-1 branch November 13, 2024 22:06
@hofbi
Copy link
Contributor

hofbi commented Nov 18, 2024

@mattem In case you still want to have typing and support older Python versions (although they might be EOL already), you could use

from typing import List

# some code

user_args: List[str] = [$$FLAGS$$]

mattem pushed a commit that referenced this pull request Nov 19, 2024
As suggested in
#435 (comment)
a backwards compatible (< Python 3.9) type hint.

Regardless of merging this PR or not, the current 1.0.0 release is
broken for < Python 3.9. Since Python 3.8 is already EOL, this is in
theory valid, but I guess there are still a few people using Python 3.8
because of Ubuntu 20.04.

---

### Changes are visible to end-users: no

### Test plan

<!-- Delete any which do not apply -->

- Covered by existing test cases
- New test cases added
- Manual testing; please provide instructions so we can reproduce:
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.

3 participants