Skip to content

Commit a5ce0e7

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): exclude mypy from running on tests (#531)
1 parent 7fdf9b7 commit a5ce0e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mypy.ini

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ show_error_codes = True
55
# Exclude _files.py because mypy isn't smart enough to apply
66
# the correct type narrowing and as this is an internal module
77
# it's fine to just use Pyright.
8-
exclude = ^(src/finch/_files\.py|_dev/.*\.py)$
8+
#
9+
# We also exclude our `tests` as mypy doesn't always infer
10+
# types correctly and Pyright will still catch any type errors.
11+
exclude = ^(src/finch/_files\.py|_dev/.*\.py|tests/.*)$
912

1013
strict_equality = True
1114
implicit_reexport = True

0 commit comments

Comments
 (0)