Skip to content

Commit e2496f1

Browse files
author
Stainless Bot
committed
chore(internal): exclude mypy from running on tests (#1899)
1 parent 460b663 commit e2496f1

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 and _logs.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/openai/_files\.py|src/openai/_utils/_logs\.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/openai/_files\.py|src/openai/_utils/_logs\.py|_dev/.*\.py|tests/.*)$
912

1013
strict_equality = True
1114
implicit_reexport = True

0 commit comments

Comments
 (0)