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

Generic objects, when realized to strings, raise TypeError on concatenation. #235

Closed
pschanely opened this issue Jan 12, 2024 · 0 comments · Fixed by #238
Closed

Generic objects, when realized to strings, raise TypeError on concatenation. #235

pschanely opened this issue Jan 12, 2024 · 0 comments · Fixed by #238

Comments

@pschanely
Copy link
Owner

CrossHair's counterexample does not reproduce in this example:

def arithmetic_op(a, b):
    """
    post: True
    """
    result = a + b
    return result

# actual: /tmp/main.py:5: error: TypeError:  when calling arithmetic_op('', '')
# expect: counterexamples like arithmetic_op('', 0)

See also the original report in #234

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 a pull request may close this issue.

1 participant