Skip to content

Update README.md - #223

Merged
sobolevn merged 1 commit into
typeddjango:masterfrom
Khabib73:patch-3
Nov 18, 2026
Merged

sobolevn merged 1 commit into
typeddjango:masterfrom
Khabib73:patch-3

Conversation

@Khabib73

@Khabib73 Khabib73 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Sorry, but this example doesn't work (outdated):

- case: with_params
  parametrized:
    - val: 1
      rt: builtins.int
    - val: 1.0
      rt: builtins.float
  main: |
    reveal_type({{ val }})  # N: Revealed type is '{{ rt }}'

get:

E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output:
E   Actual:
E     main:1: note: Revealed type is "Literal[1]?"  (diff)
E   Expected:
E     main:1: note: Revealed type is 'builtins.int' (diff)
E   Alignment of first line difference:
E     E: ...te: Revealed type is 'builtins.int'
E     A: ...te: Revealed type is "Literal[1]?"
E                                ^
__________________________________________________________________ with_params[val=1.0,rt=builtins.float] __________________________________________________________________
/Users/khabibshahbanov/pytest_mypy_plugin_ex/tests/test_params.yml:8:
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output:
E   Actual:
E     main:1: note: Revealed type is "float"        (diff)
E   Expected:
E     main:1: note: Revealed type is 'builtins.float' (diff)
E   Alignment of first line difference:
E     E: ...te: Revealed type is 'builtins.float'
E     A: ...te: Revealed type is "float"
E                                ^

I also updated quotes (used double).

@sobolevn
sobolevn merged commit 90387c5 into typeddjango:master Nov 18, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants