`mypy` does not pick up type mismatch errors
The following discussion from !361 (merged) should be addressed:
-
@tle_gitlab started a discussion: (+2 comments) praise: Thank you for fix this type mismatch. I am surprised that
mypy
did not pick this up.pyright
does a better job in this case.❯ pyright tests | grep test_config (reportMissingImports) /Users/tanle/code/gitlab/ai-validation/prompt-library/tests/promptlib/code_suggestions/test_config.py:30:27 - error: Argument of type "Literal['does/not/exist.txt']" cannot be assigned to parameter "template_path" of type "Path" in function "__init__"(reportMissingImports)