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

Strip type annotations from generated test files in Otter Assign #796

Open
chrispyles opened this issue Apr 17, 2024 · 0 comments
Open

Strip type annotations from generated test files in Otter Assign #796

chrispyles opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chrispyles
Copy link
Member

Since the exception-based test files generated by Otter Assign don't import anything except for the test_case decorator, any type annotations using the typing library or others will throw a NameError when executing the file.

def test_1(arr: np.ndarray):
    assert arr.shape == (3, 2)

Instead, Otter Assign should strip type annotations from the code it writes into these test files.

@chrispyles chrispyles added the enhancement New feature or request label Apr 17, 2024
@chrispyles chrispyles added this to Icebox in Otter-Grader Issues and Tasks via automation Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant