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

greater-than sign in parametrized values (to check function return values) #110

Open
jakkdl opened this issue Mar 27, 2023 · 0 comments
Open

Comments

@jakkdl
Copy link

jakkdl commented Mar 27, 2023

- case: foo
  parametrized:
    - val: bool
      rt: 'def (builtins.object =) -> builtins.bool'
  main: |
    reveal_type({{ val }})  # N: Revealed type is "{{ rt }}"
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: 
E   Actual:
E     main:1: note: Revealed type is "def (builtins.object =) -> builtins.bool" (diff)
E   Expected:
E     main:1: note: Revealed type is "def (builtins.object =) -> bool" (diff)
E   Alignment of first line difference:
E     E: ... "def (builtins.object =) -> bool"
E     A: ... "def (builtins.object =) -> builtins.bool"
E                                      ^

This is not due to yaml, but due to chevron escaping html characters. Only way to get around it is to not use parametrized, which makes for a lot more repeated code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant